Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-23 Thread giulio
Hi, I see the tutorial and i read a lot of articles on the web, but this not solve my problems. I'm trying to configure cake php on windows vista using xampp. I've added the path to the environment variable, and i tried to substitute with an updated version the mysqli.dll but it seems that wind

Authentication for admin and public user in one(1) app

2008-08-23 Thread mario
Hello everyone, I just learn cakephp and I'm having trouble creating the admin section of my app. These are what I've done so far. 1. I've created a user section with the capabilities of login/logout and signup. 2. I've created a "users" table for it. 3. I've overriden the app_controller and de

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-23 Thread giulio
If i write cake.bat it returns me the answer that php is not know as command Thanks for the help Giulio On 24 Ago, 07:29, giulio <[EMAIL PROTECTED]> wrote: > Hi, > > I see the tutorial and i read a lot of articles on the web, but this > not solve my problems. > > I'm trying to configure cake

Re: Cake sheet

2008-08-23 Thread Sam Sherlock
> > It would be really great to get the source sheet > It would be great to admend the existing. I gather that who ever created the existing sheet is too busy or not available. Anyway I am up for it! I have transposed the existing to a wordfile bits have been mismatched in the process :( so that

Re: Changing default directories

2008-08-23 Thread majna
fast and stupid: webroot/index.php -add at top define ('WEBROOT_DIR', 'includes'); -point domain documemt root to "includes" On Aug 23, 11:00 pm, seanislegend <[EMAIL PROTECTED]> wrote: > Is there any way to do this? I'd like to my CSS and JS folders from > the webroot to 'includes/css' etc. as

Allowing entire controllers with Auth component

2008-08-23 Thread tekomp
I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages. I want all pages in my "Pages" controller to not require authorization, so I added $this- >Auth->allow('*') in my beforeF

Re: Changing default directories

2008-08-23 Thread seanislegend
Just had a look on the Book, and this is what I'm after (in case anyone else may find it handy): http://api.cakephp.org/paths_8php.html On Aug 23, 10:43 pm, majna <[EMAIL PROTECTED]> wrote: > fast and stupid: > webroot/index.php > -add at top  define ('WEBROOT_DIR', 'includes'); > -point domain

Hi

2008-08-23 Thread [EMAIL PROTECTED]
Hi All I m new user for cakephp please can you provide me any problem i ll find Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com

Re: Preventing Cache Reload In Case of Database Failure?

2008-08-23 Thread majna
You can check with ConnectionManager if database is connected (in app_controller __construct() ) if not connected use clearCache() to clear your views cache. On Aug 23, 10:12 am, aranworld <[EMAIL PROTECTED]> wrote: > This is what is currently happening to a site I have: > > 1) person visits sit

Re: Removing page execution time from bottom of page

2008-08-23 Thread majna
just set Debug to 0. (execution time is echoed from webroot/index.php, but only in debug mode) On Aug 23, 11:02 pm, Aaron <[EMAIL PROTECTED]> wrote: > At the bottom of every rendered page is an execution time (i.e. > ) I have views that return json and this breaks the > parsing. How do I remo

Removing page execution time from bottom of page

2008-08-23 Thread Aaron
At the bottom of every rendered page is an execution time (i.e. ) I have views that return json and this breaks the parsing. How do I remove this? -Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Changing default directories

2008-08-23 Thread seanislegend
Is there any way to do this? I'd like to my CSS and JS folders from the webroot to 'includes/css' etc. as this is the way I organised them before I began working with Cake, and if possible I'd like to continue like so. Any suggestions? Thanks. --~--~-~--~~~---~--~

Re: Hi

2008-08-23 Thread Samuel DeVore
no -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ http://blog.samdevore.com/cakep

Re: Implementing REST service with POST and PUT

2008-08-23 Thread mozart_ar
well, i have some problems with $this->RequestHandler->isXml(). It return true for not REST request. I am using now: (strtolower($this->RequestHandler->prefers()) == 'xml') Regards On 6 ago, 05:02, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Try this > if ($this->RequestHandler->isXml() &&

generatetreelist()

2008-08-23 Thread Abrar
hi , here im trying to use generatetreelist() first time, so whats problem im facing is that it saves the data two times with once execution of code. here is my code that im using function addData($fieldName = null, $pa_id = null){ $existance = $this->Category->findByN

Complex HABTM paginate

2008-08-23 Thread Josoroma
Thanks to this article: http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/ Form categories controller Im displaying all the Listings name and description from a given category($current_id) class CategoriesController extends AppController { function index($cur

Re: Cake sheet

2008-08-23 Thread NOSLOW
Here's a few more items that have been deprecated in 1.2 that are listed on that sheet: Global Functions: vendor(...), cache(...) Controller: $beforeFilter, cleanUpFields() Model: execute(data), findAll(...); findNeighbours(...), findCount(...), findAllThreaded(...) Model onError() callback was

Greetings to everyone

2008-08-23 Thread Roger
Hi Masters, Please may i know where i could learn the basics building a website in Cake i have several tutorials but not much enough i am trying to make a small website which have Admin panel and some pages user side is cake have facility to make Admin control bundled with it or we need to make

Re: SQL: where column NOT IN ...

2008-08-23 Thread haj
On Aug 22, 10:28 pm, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > 'not' => array('Model.field' => array( 1, 2, ...)) That's what I meant; you have to express in that way instead of somehow accustomed typical SQL way. --~--~-~--~~~---~--~~ You received this mess

Re: Preventing Cache Reload In Case of Database Failure?

2008-08-23 Thread Chris Hartjes
On Sat, Aug 23, 2008 at 4:12 AM, aranworld <[EMAIL PROTECTED]> wrote: > > Is there a way to get Cake to not overwrite an old cached view, if it > can detect that there was a database connectivity problem? > Well, it seems to me that this might actually be an application logic problem. Here's why

Re: Cake sheet

2008-08-23 Thread clemos
Be careful, because there are a few (maybe more) deprecated things such as renderElement(), vendor(), ... +++ Clément On Sat, Aug 23, 2008 at 6:23 AM, Paolo Stancato <[EMAIL PROTECTED]> wrote: > > 2008/8/23 Samuel DeVore <[EMAIL PROTECTED]>: >> >> >> As far as I know it is, but it is for 1.1

Re: Cake + WAMP

2008-08-23 Thread villas
Hi Arak, It sounds like you are simply having a problem with paths and set up. I suggest that you have good look at the manual for installation because that should really be enough info to get you moving: http://book.cakephp.org/view/27/developing-with-cakephp On Aug 23, 4:14 am, "Arak Tai'Roth

Re: Composite primary key

2008-08-23 Thread irfani YangBaikHati
you can add one field eg (ID auto increment) as the primary key, and the 2 columns become a usual field. On Sat, Aug 23, 2008 at 6:42 PM, . <[EMAIL PROTECTED]> wrote: > If cake does not support composite keys, how would I create a custom query > to do this? > > Thanks! > > On Sat, Aug 23, 2008 at

Re: Composite primary key

2008-08-23 Thread .
If cake does not support composite keys, how would I create a custom query to do this? Thanks! On Sat, Aug 23, 2008 at 3:41 AM, . <[EMAIL PROTECTED]> wrote: > Hi > > I have a table with composite primary keys. The primary key consists of 2 > columns. How would I do a row insert? > > Thanks > -

Composite primary key

2008-08-23 Thread .
Hi I have a table with composite primary keys. The primary key consists of 2 columns. How would I do a row insert? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

Re: something like Joomla modules

2008-08-23 Thread Joel Perras
Take a look at CakePHP plugins: http://book.cakephp.org/view/114/plugins -Joel. On Aug 22, 2:23 pm, luigi7up <[EMAIL PROTECTED]> wrote: > Hello everyone. > > I just started to explore Cake PHP and already love it. > > I'm trying to create a simple CMS. I have few questions about how to > solve s

Re: User Authentication Methods

2008-08-23 Thread aranworld
Here is a step-by-step summary that should hopefully help you grasp how Auth and ACL are working together. http://aranworld.com/article/164/cakephp-acl-tutorial-auth-component-example ACL is basically a database of permissions. The Auth Component is programmed to query that database to dermine

Preventing Cache Reload In Case of Database Failure?

2008-08-23 Thread aranworld
This is what is currently happening to a site I have: 1) person visits site's home page, which contains an element which displays the top news stories from the database 2) since the element is set to be cached, a cached view file is set with an expiration of 3 hours ... 2 hours later ... 3) the w

Re: Last resort: persistent auth error

2008-08-23 Thread Baxter
Thanks for your response! I made a very silly error indeed. All set now! :-) On Aug 20, 12:37 am, francky06l <[EMAIL PROTECTED]> wrote: > Do you have any requestAction called somewhere prior to render the > view (that is not allowed? ) ? > > On Aug 20, 3:59 am, Baxter <[EMAIL PROTECTED]> wrote