Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
1) Constants should be defined in app/config/bootstrap.php, not in the controller class 2) debug the view variables, if defined in app_controller that variable should be available to views, also check that you don't unset it. On Nov 22, 2007 8:48 AM, FoxMaSk <[EMAIL PROTECTED]> wrote: > > Hi, >

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread FoxMaSk
Hi, I meet 2 issue : A) Constantes B) Array and undefined index A) Constantes When i define a constante in the __construct of the app_controller.php cakephp try to define it twice ... one for each controllor ? (app_controller.php and one for [myapp]_controller.php ) ? if so ; do i have to defi

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread FoxMaSk
Thanks you very much ! i'm starting to see how to rethink a complet CMS which did not use MVC ; its a real pain, but that's come slowly ;) On 21 nov, 13:17, Repsah <[EMAIL PROTECTED]> wrote: > because you have to put that declaration in the constructor, not in an > index() method that you probab

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
because you have to put that declaration in the constructor, not in an index() method that you probably won't call. On Nov 21, 2007 1:09 PM, FoxMaSk <[EMAIL PROTECTED]> wrote: > > i tried : > class AppController extends Controller { > >public function index() { >$foxtal =

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread FoxMaSk
i tried : class AppController extends Controller { public function index() { $foxtal = & new foxtal(); $this->set('foxtal', $foxtal); } } and then in default.ctp i still have : which give the error Undefined variable: foxtal where is the mistak

Re: Undefined variable: ... CORE\app\views\layouts\default.ctp

2007-11-21 Thread Repsah
Inizialize the class in your app_controller and export it to views using the set() method. On Nov 21, 2007 12:18 PM, FoxMaSk <[EMAIL PROTECTED]> wrote: > > Hi, > in the boostrap.php i call a vendor script that does a lot of stuff > > one of them is to get the punbb (a BB sofware) config > > class