Paste your EventsController too...

On 10 Oct 2008, at 00:06, Fibra wrote:

>
> Hello Everyone, how are you?
>
> I've read this issue in other posts but most of the solutions are
> becouse they've updated to a newer version.
>
> Since I just downloaded the latest stable version on cake,
> cake_1.2.0.7692-rc3.tar.bz2 I must ask for help.
>
> Here's the thing:
>
> I have my routing.admin turned on, and placed my app_controller.php
> under /app
>
> here's the code:
>
> <?php
>       class AppController extends Controller {
>               function __construct(){
>                       die('wtf');
>               }
>
>               function beforeFilter(){
>                       echo 'ok';
>                       if (isset($this->params['admin'])) {
>                               $this->layout = 'admin';
>                       }
>               }
>
>       }
> ?>
>
> Neither 'ok' or 'wtf' get printed once I access /admin/events, however
> they DO get printed when I access /admin, but that's becouse I forced
> to have the admin_layout like this:
>
> Router::connect('/admin', array('controller' => 'pages','layout' =>
> 'admin', 'action' => 'display', 'admin_home'));
>
> So, any ideas? Do I have to post more info for this issue?
>
> Thanks in advance!
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to