View [emails.password] not found in Laravel 5 / Angular project. - angularjs

I'm trying to add a password reset mechanism to my Laravel 5.0 / AngularJS app. I'm at the step when I need to send an email with a reset link, and am running into the error: View [emails.password] not found.
Since I am using Angular on the front end, I changed my default view path in config/view.php to:
'paths' => [
realpath(base_path('public/app')),
],
When I call sendResetLink() it throws an exception saying: View [emails.password] not found. The stack trace specifically mentions that it cannot find this view in public/app of my project.
I did a bit of research and found out that emails.password corresponds to a blade view located here: laravel/resources/views/emails/password.blade.php
I also know that this view corresponds to the email body.
For some reason, my Laravel project does not have this file so I created it in the public/app directory of my project.
The file that I created is called password.blade.php and has the following code in it:
Click here to reset your password: {{ url('password/reset/'.$token) }}
I'm a newbie with Laravel and don't really know how to register blade views, or even how the view 'emails.password' maps to password.blade.php.
What can I do to resolve this issue? Thanks again.

You need to put that blade file in the directory that Laravel expects it. view('emails.password') in Laravel refers to the password.blade.php file in resources/views/emails/. For example if you wanted to display the view of "profile" profile.blade.php in the users directory resources/views/users/, you would use view('users.profile')

Related

Custom 404 Page not found in abp framework

I am using ABP.io 4.1 with razor pages.
Is there any way to customize the 404-page? Right now it just says [404] Error!.
Would be nice to at least adjust the message, but would also be great if a razor page could be loaded with some content and logic to perhaps store the missing url for review.
Create your custom error page with name Error.cshtml and put it in Pages folder of your Web project.
This is an example of how you can override the default error page
https://github.com/abpframework/abp/blob/dev/modules/docs/app/VoloDocs.Web/Pages/Error.cshtml
alternatively you can remove the existing Error middle ware and add yours

View Engine (ViewNotFoundException) Error using Nancy

I am trying to use View Engine to return an HTML page in my window application. URL gets called but when i try to return a View, i get ViewNotFoundException error.
In an error message, I cant see the extensions available and locations inspected but i still get an error as Below:
Nancy.RequestExecutionException: Oh noes! ---> Nancy.ViewEngines.ViewNotFoundException: Unable to locate view 'test' Currently available view engine extensions: sshtml,html,htm,cshtml,vbhtml
I have checked the Demo project on git and it works fine but that's a web project whereas mine is window service (i might be missing something). Has anyone tried to implement View Engine in windows service and got it working.
Error is quite self-explanatory but i cant seems to get my head around where the test file should go for it to work.
Edit:
Nancy version: 1.4.2
I tried var foo = typeof(RazorViewEngine); and it does return all the View Engine values with locations inspected and all that.
My Project structure is:
Modules
---- myModule.cs
Views
---- Test.cshtml
views/test is in locations inspected but it looks like, its looking somewhere instead of my structure.
Thanks in advance

Default values automatically save in database when plugin will be activated

I have used a WordPress Settings API PHP Class framework, that found here http://tareq.wedevs.com/2012/06/wordpress-settings-api-php-class/, to create my first plugin setting page.
Everything is working fine except default option values are not saving in database until I hit "Save" going to setting page. But I would like this to be saved automatically when someone activate the plugin.
I tried using register_activation_hook() but failed. I am not sure how to use that framework with register_activation_hook(). You can check the codes going to the link I mentioned above. I am about to finish my first plugin but stuck on this.

qooxdoo qx.ui.mobile.list package not loading

I have just started evaluating qooxdoo + phonegap for a mobile application and have completed the getting started manual and created a test application which works as expected. The default app created has page1 with a button to navigate to page2 and back.
I have edited application.js to show a list by copying the list sample script into it but the list creation fails with error TypeError: Cannot read property 'List' of undefined
I have tried looking into the documentation to see if i have to make any changes to the app to load the list package but have not able to find anything. Can someone point me in the right direction?
Did you call
./generate.py source
after adding the qx.Mobile list to your application?
Calling ./generate.py source did not help ./generate.py source-all did the trick

plugins for cakephp view

I am very new to cakephp and I see a folder plugin in my application
when I go to the site I see the address as
mysite.com/user/mergerdata
mergerdata is a plugin
When I click on add I see this
mysite.com/account/mergerdata/add
so when I go to app/plugins/mergerdata/controllers/merger_controller
I dont see an add action, But I do see the user_add action there
Am I looking at the wrong place. Where is User comning from. Where is Add coming from ???
"user" is a prefix, similar to an admin prefix. You can read more about it on http://book.cakephp.org/view/950/Prefix-Routing
Basically, this feature allows you to have different methods for different levels of users, and the prefix ("user") is added to the front of the method name ("add").

Resources