You should be able to access the current page from the Controller at
$this->params['paging'][$modelAlias]['page'], after you've called
$this->paginate.
You can then set the title for the page with $this->set('title_for_layout',
'design website page ' . $this->params['paging'][$modelAlias]['page
You don't have to use the admin prefix, but it might help if you have two
types of authenticated users, who might see different versions of an edit
action on a controller.
For example, in one website I did, we had the administrators who would
authenticate to edit the site, and we had website me
Actually, looking at the code, getPreviousUrl assumes that the URL stored
in the session at Authake.previousUrl is either an array or a CakeRequest,
since that is what is required for Router::reverse().
You'll need to inspect the Session, and see what is being stored in
Authake.previousUrl. Thi
What is your Config/routes.php looking like?
It might also be an issue with the plugin, if there was no previous url to
resolve. You may need to log an issue with the plugin author via Github.
On Thursday, 15 May 2014 03:08:26 UTC+10, Julio Rodriguez wrote:
>
> Hello,
>
> I'm using authake (htt
I might also suggest change the DocumentRoot of your application to
app/webroot, since you probably shouldn't be accessing the controllers
directory directly (unless it was just an example).
On Thursday, 15 May 2014 18:38:40 UTC+10, Sam wrote:
>
> I am using cakephp 2.4.5. I would like to redire
Webpages located under app/webroot aren't subject to processing the same
way that controllers are.
If you have static pages that require authentication, then I would suggest
usage of the Pages controller
(http://book.cakephp.org/2.0/en/controllers/pages-controller.html), and
relocate those sta
Oh, and if you're running Git on Windows, you may have to change the case
of the various directories.
To do this, I had to use a two stage approach:
git mv config config.old
git mv config.old Config
and repeat for all application directories.
On Friday, 16 May 2014 14:21:08 UTC+10, earth wrote
Follow the documentation (http://book.cakephp.org/2.0/en/appendices.html),
and perhaps use dereuromarks upgrade plugin
(https://github.com/dereuromark/upgrade).
Since you're going through all the releases from 1.3 to 2.5, make sure to
read the all the guides first, before changing any code. Ju
Since the convention would be for a join table to be flags_invoices
(alphabetical), the model name might be FlagsInvoice, even though CakePHP
to automagically generate a dynamic model of FlagInvoice while using the
HABTM relationship from the Flag or Invoice models.
Though it might be easier to
I have a project in cakePHP version 1.3 and i want it to upgrade it
to cakePHP version 2.5
Please let me know the best way to do this upgrade.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are sub
Hi guys,
I created a Gallery plugin for CakePHP 2.x to manage albums and pictures
for any model.
You can check out the code, features, docs and demo here:
https://github.com/hugodias/cakegallery
Feel free to send feedbacks :)
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us o
Ok, I'm probably being really dumb here, but I can't figure out how to
delete an associated record when the association is HABTM.
I have the following:
*Invoice:*
public $hasAndBelongsToMany = array(
'Flag' => array(
'counterCache' => true,
)
);
I can ad
I am using cakephp 2.4.5. I would like to redirect all users who have not
logged in to a login page. I basically followed the instructions here
http://miftyisbored.com/a-complete-login-and-authentication-application-tutorial-for-cakephp-2-3/
In summary, the important part is the following code
I am using cakephp 2.4.5. I would like to redirect all users who have not
logged in to a login page. I basically followed the instructions here
http://miftyisbored.com/a-complete-login-and-authentication-application-tutorial-for-cakephp-2-3/
In summary, the important part is the following code
14 matches
Mail list logo