[Solar-talk] Starting with Solar 0.20
Paul M Jones
pmjones at solarphp.com
Wed Jun 28 13:18:59 PDT 2006
On Jun 28, 2006, at 3:08 PM, Stuardo -StR- Rodríguez wrote:
> On Wednesday 28 June 2006 14:54, Paul M Jones wrote:
>> Solar_Controller_Page
>
> Ok... now I get this error: (my vendor is DevelSystems and my App
> is Planet)
Also my fault; the page-controller is not adding the Solar/App/Layout
directory to the layout template stack. The page-controller looks
first in DevelSystems/App/Planet/Layout, then DevelSystems/App/
Layout, and then stops. It needs to also look in Solar/App/Layout.
As a short-term fix, in Solar/Controller/Page.php, the _layoutInstance
() method, at line 459, change from this ...
// find the vendor-level templates (Vendor/App/Layout)
$template[] = dirname($this->_dir) . DIRECTORY_SEPARATOR .
'Layout';
... to this:
// find the vendor-level templates (Vendor/App/Layout)
$vendor = dirname($this->_dir) . DIRECTORY_SEPARATOR .
'Layout';
$template[] = $vendor;
// add the Solar templates as the final fallback
if ($vendor != 'Solar/App/Layout') {
$template[] = 'Solar/App/Layout';
}
Clearly I need to work more on the SkeletonApp example. Sorry for
the trouble, let me know what else you find. Thanks for your
patience and feedback.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list