Re: Smarty with CakePHP

2010-07-03 Thread mark_story
Sounds like the code is using methods that have been deprecated/ removed in the version of cake you are using. You'll probably need to update the SmartyView to use the new methods. -Mark On Jul 2, 1:58 pm, zoran wrote: > During installation Smarty to my CakePHP 1.3 error occurs: > "Undefined pr

Re: How to build 3 column page?

2010-07-03 Thread randy
You might want to take a look at the 960 grid bake template, found in the Bakery a few weeks back: http://bakery.cakephp.org/articles/view/960-fluid-grid-system-bake-templates On Jul 3, 6:24 am, Ahmet Kemal wrote: > Hello, > > I am new at CakePhp. I want to create a website that has 3 columns. >

How To Rely on Group/Role for Auth + Acl

2010-07-03 Thread randy
In my aros_acos table, I do not want to have records related to Users of my site, I would prefer to establish access rights using the Groups for my Users. In the console I want to setup access rules such as this cake acl grant Group.1 Widgets/index read; NOT cake acl grant User.23 Widgets/index

Re: hasOne don't show all data

2010-07-03 Thread guvilla
I found the problem. Tks 4 all On 3 jul, 19:03, guvilla wrote: > TABLES: > > User: > id, username, password > > Customer: > id, user_id, name, type, city > > MODELS: > > class Custumer extends AppModel { >         var $name = 'Custumer'; > >         var $hasOne = array( >                 'User' =

hasOne don't show all data

2010-07-03 Thread guvilla
TABLES: User: id, username, password Customer: id, user_id, name, type, city MODELS: class Custumer extends AppModel { var $name = 'Custumer'; var $hasOne = array( 'User' => array( 'className' => 'User', 'foreignK

Re: Upgrading from 1.3.0.0.(alpha) to current stable version 1.3.2

2010-07-03 Thread Warren
Yup thanks. I was using the migration guide but I did have some issues. I worked them out though. I should probably post some of my findings. On Jul 3, 11:04 am, red wrote: > Migrating from 1.3 alpha to 1.3.2 should be similiar as 1.2 to 1.3 > (probably even easier). > > Just follow the migratio

Re: milesj uploader - how to make multiple thumbnails?

2010-07-03 Thread Sam Sherlock
use something like phpthumb and place it in vendors see http://bakery.cakephp.org/articles/view/thumbnails-generation-with-phpthumb - S On 3 July 2010 12:10, K3 wrote: > Hi, > i am using milesj uploader behaviour (http://www.milesj.me/resources/ > script/uploader-plugin) > and it is working f

Re: Best way to implement a filter?

2010-07-03 Thread red
Check this filter plugin: http://github.com/josegonzalez/cakephp-filter-plugin On 2 Lip, 23:40, Aircule wrote: > Hi, > > I have a model with many fields and many records in the database. To > avoid clutter, I want users to be able to apply some filters when > viewing all records (ie: model->ind

Re: How to build 3 column page?

2010-07-03 Thread red
You don't need another controller or action if all of this elements applies to posts. First prepare 3 column layout: http://book.cakephp.org/view/1080/Layouts And then use view elements: http://book.cakephp.org/view/1081/Elements One element for latest 20 posts, one for top viewed and one for to

Re: Upgrading from 1.3.0.0.(alpha) to current stable version 1.3.2

2010-07-03 Thread red
Migrating from 1.3 alpha to 1.3.2 should be similiar as 1.2 to 1.3 (probably even easier). Just follow the migration guide: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 On 3 Lip, 15:31, Warren wrote: > Hey guys, I've got a bit of a noob request.  What's the easiest way t

Upgrading from 1.3.0.0.(alpha) to current stable version 1.3.2

2010-07-03 Thread Warren
Hey guys, I've got a bit of a noob request. What's the easiest way to upgrade to 1.3.2 stable from the 1.3.0.0 version? I'm also running svn by the way. Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

How to build 3 column page?

2010-07-03 Thread Ahmet Kemal
Hello, I am new at CakePhp. I want to create a website that has 3 columns. One column for latest 20 post, second column for top viewed posts this week and third column for top viewed posts this month. I succeeded coding one column but my mind frozen about finding a way to implement other columns.

Best way to implement a filter?

2010-07-03 Thread Aircule
Hi, I have a model with many fields and many records in the database. To avoid clutter, I want users to be able to apply some filters when viewing all records (ie: model->index()). Let's say I have a model "Song": id, (fk) artist_id, name, (fk) genre_id, (fk) album_id, (boolean) has_lyrics The i

Smarty with CakePHP

2010-07-03 Thread zoran
During installation Smarty to my CakePHP 1.3 error occurs: "Undefined property: Configure::$viewPaths [APP/views/smarty.php, line 196]". What is wrong??? smarty.php - http://cakeforge.org/snippet/download.php?type=snippet&id=389 Check out the new CakePHP Questions site http://cakeqs.org and help

controller as subdomain

2010-07-03 Thread baur79
Hi, i have cat.domain.kz news.domain.kz laws.domain.kz how to implement controller name as subdomain thanks for you answers Baurzhan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are s

milesj uploader - how to make multiple thumbnails?

2010-07-03 Thread K3
Hi, i am using milesj uploader behaviour (http://www.milesj.me/resources/ script/uploader-plugin) and it is working fine. However i want to make multiple thumbnails(multiple resize transforms), something like: class Upload extends AppModel { var $actsAs = array( 'Uploader.Attachment' =

Re: HTML5 Cache MANIFEST and Cakephp

2010-07-03 Thread Ayman Bedair
UPDATE: Now I Included NETWORK: /requests /requests/ /requests/* */requests/* requests/ requests in the file... I don't know which line worked for it but it doesn't include anything in the cache now. It removes all cached links when the requested URL is somewhere in the requests controller. I w

HTML5 Cache MANIFEST and Cakephp

2010-07-03 Thread Ayman Bedair
I've been trying to speed up stuff with my web app recently. I thought it'd be useful to start caching some of the images, css and js files for offline usage and that my help in getting the thing to run faster. I've created the following Cache Mainfest file for test: -- FILE STARTS HERE -

Re: cron dispatcher and route

2010-07-03 Thread Dmitry Shevchenko
Hi seems that the fastest solution - is set FULL_BASE_URL in the cron dispatcher if (!defined('FULL_BASE_URL')) { define('FULL_BASE_URL', 'http://www.mydomain.com'); } if someone knew better way - please tell me. Thank you. Check out the new CakePHP Questions site http://cakeqs.or

Re: Cookies from CAKE and other branding

2010-07-03 Thread Vangel
On Jun 29, 8:38 pm, "Larry E. Masters aka PhpNut" wrote: > Sounds like you are not using the proper settings in core.php to set the > cookie name. Look @ the doc comments in the file they should explain how to > do this. > > As for the "branding" override all of the templates from the core views

Re: Cookies from CAKE and other branding

2010-07-03 Thread Vangel
Thank you did not expect the "it is free so take it or leave it " speech from you. my concern is security. but ofcourse who the heck cares, lets thrash people. thank for the help. On Jun 29, 8:59 pm, AD7six wrote: > On Jun 29, 5:01 am,Vangel wrote: > > > I am quite sick of cake doing tons of br

Re: Including an External Library file that has functions that aren't in a class?

2010-07-03 Thread Rick Dane
Neverimind, I realized you have to declar each App::import('Vendor', 'libraryfile') ; separately, I had thought that you could just list multiple files off in the same ( ) (like when including a component in CakePHP) but realized you have to make a new line for each new vendor file you want to incl