Re: Behavior of a div updated

2007-03-27 Thread francky06l
You can't pass javascript (I mean as $javascript->link() ..etc ...) in a return of an ajax call. Best is to load it into the initial layout. On Mar 28, 8:50 am, "Steniskis" <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry to repeat my question but I try to be more clear. I have updated > a div with an

Re: Showcasing www.votigo.com

2007-03-27 Thread daddycool
Wow! No replies :( C'mon guys show some enthusiasm? :) On Mar 28, 12:14 am, "daddycool" <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I would like to introduce all of you to the website I just finished > coding (first phase) alongwith a couple of my friends. The site in > question is -www.vo

Re: Discussion on cake-apps-sites-in-the-wild

2007-03-27 Thread daddycool
One more new site - www.votigo.com -daddycool. On Mar 25, 3:07 am, "savagekabbage" <[EMAIL PROTECTED]> wrote: > Just letting you guys know about a scheduling tool I'm working on for > my family's business. I still need to try to write an auto scheduling > algorithm, but it has some nifty featur

Behavior of a div updated

2007-03-27 Thread Steniskis
Hi, Sorry to repeat my question but I try to be more clear. I have updated a div with an ajax form. In this div updated that is a list, I have no access to any javascript or ajax. Besides, the layout used in this action contains those javascript. Have you any explication or solution ? Thank yo

Re: Autocompletion Options

2007-03-27 Thread Jeremy Pointer
Below is an almost exactly similar question and my previous answer. HTH robert.fulcher wrote: > I want to use the autocomplete componenet and was wondering how to use > the options. I want to use it with a lookup field. I have a contact > that I want to assign a company to. I have it where I ca

I18n and Localization support

2007-03-27 Thread ks
We are building a site that needs to support multiple languages - content ( titles of topics etc), user names and DB strings etc. will be in multiple languages - including chinese. >From the information I found on the site, the 1.1 version will not support this right? Will the alpha version (1.2

Re: FileHandler Question - plz help

2007-03-27 Thread Dr. Tarique Sani
On 3/28/07, fredBH <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I still having problems with get upload working in my App... > > I have found this App -> > www.sanisoft-demo.com/photoBlog/index.php?url=/posts/add > > and its just that i need :P WOW! You stumbled upon the grave of cheesecake

Re: saving HABTM posts->tags

2007-03-27 Thread Dr. Tarique Sani
On 3/27/07, davyke <[EMAIL PROTECTED]> wrote: > I found these Sql in cheeseCake when i edit a photo's tag, could you > explain where's the code for this? The SQLs are generated by CakePHP and not by Cheesecake - I just supply the array of tag IDs while saving the Photo HTH Tarique -- =

Re: How to measure Loading time in AJAX for each

2007-03-27 Thread Seb
Ajax is 'asynchrounous', meaning you can have many calls at the same time, meaning you would require multiple start/end time to get what you want. I could tell you how in a few paragraphs, but the short answer is much better and way simpler; 1. Get Firefox 2. Get Firebug (and addon to firefox) t

How to measure Loading time in AJAX for each

2007-03-27 Thread skyblueink
Next snippet is supposed to show 10 s, each displays the loading time. Loading time is the difference between endTime and startTime: startTime and endTime was given by javascript Date.getTime method at the time of 'loading' and 'complete' for each run of $i. But the calculated time is always 0, th

Autocompletion Options

2007-03-27 Thread robert.fulcher
I want to use the autocomplete componenet and was wondering how to use the options. I want to use it with a lookup field. I have a contact that I want to assign a company to. I have it where I can lookup the company by name in the autocomplete field. I need to assign a value of the id from th

Re: HABTM saving problem

2007-03-27 Thread feelexit
I got it work now --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: Mission critical application & high security user auth and access levels

2007-03-27 Thread Langdon Stevenson
Hi Zee > Any suggestions? othAuth perhaps? oscommerce? hmmm My preference for authentication id d_auth (passwords not transmitted in the clear). I use ACL for access control to both functionality (actions) and to data I have built a number of sites with osCommerce and Cake (and Drupal) and f

Re: How Can I : create One Controller and Two Models

2007-03-27 Thread [EMAIL PROTECTED]
Whoops! Thanks for the correction. :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: How Can I : create One Controller and Two Models

2007-03-27 Thread BlenderStyle
Right! To clarify a bit more, create two models (OldRider and NewRider), and one controller (RidersController). In RidersController, add this just like [EMAIL PROTECTED] said: var $uses = array('OldRider', 'NewRider'); Then, in your controller you can access both models. Example, $this- >OldRide

Mission critical application & high security user auth and access levels

2007-03-27 Thread ZeeJayster
Hello Everyone: i played with CakePHP for over a year just to see if i like it or not. well.. i like it alot. i have read the manual inside out and viewed serverl tutorials. I am about to build a mission critical, large scale web application. what would you "fine bakers" suggest to use for securi

Re: Cake PHP configuration problem

2007-03-27 Thread Samuel DeVore
Other things to check 1. make sure that all three .htaccess files were copied to the server, some ftp clients to not copy 'hidden' files to the server, there is often an option or preference to change this undesired behavior. 2. make sure that the tmp folder was copies/ created on the server alon

Setting up a model

2007-03-27 Thread Christoph
I'm having difficultty setting up 2 models appropriately and am hoping someone can point me in the right directions. I have 2 tables (and associated models) 'game_pieces', 'CREATE TABLE `game_pieces` ( `id` bigint(20) unsigned NOT NULL auto_increment, `games_set_id` bigint(20) unsigned defau

Re: Cake PHP configuration problem

2007-03-27 Thread Grant Cox
Check in your httpd.conf that you have mod_rewrite enabled, and AllowOverride All set for your cake folder (or document root if that's what you are using). droops wrote: > Hi, > > I am newbie in cake PHP and since couple of days I am struggling with > proper cake PHP configuration. I am getting t

Re: How Can I : create One Controller and Two Models

2007-03-27 Thread [EMAIL PROTECTED]
You just need to place the following at the start of the controller var $uses = array('OldRider','NewRider'); Then you can use both tables to do whatever you want in your actions. e.g. $this->set('old_riders',$this->OldRider->findAll(); $this->set('new_riders',$this->NewRider->findAll(); The y

How Can I : create One Controller and Two Models

2007-03-27 Thread [EMAIL PROTECTED]
I have had the damnedest time with this for some reason. there are no examples that i can find for using more than one table in the same view. i have two tables, old_riders and new_riders. what i want to do is display the list of new riders and then below that display the list of old riders. i

Re: Admin Routing Techniques

2007-03-27 Thread Sonic Baker
Hi Mariano, On 3/25/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > > Or even better, no parameter needed: > > function admin_add() > { > return $this->setAction('add'); > } > This works a treat, cheers. Sonic --~--~-~--~~~---~--~~ You received this m

Re: IIS reloaded with 1.2

2007-03-27 Thread Jeremy Pointer
I already had that line uncommented, right now it seems to sort of run I'm getting php errors about $javascript not being an object which I imagine is due to the includes not finding the right paths, seeing as the IIS server is the server I am going to have to deploy on I do need to solve this

Re: modularity and MVC

2007-03-27 Thread DJ Spark
On 3/26/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > Not at all, calling requestAction() from elements/view is perfectly > acceptable. Though you could also call it from the controller and set a var > for the view to get, but again, I see no issue on the way you are doing it > now (as a mat

HABTM update with extra fields cake php 1.2

2007-03-27 Thread Jeremy Pointer
I searched high and low but couldn't really find a proper answer for doing this so with a bit of fiddling I managed to get something going. What I wanted was a way to have the equivalent of $form->input('Modelb/Modelb',.) but also with the extra column data in a table. I didn't get much cl

Cake PHP configuration problem

2007-03-27 Thread droops
Hi, I am newbie in cake PHP and since couple of days I am struggling with proper cake PHP configuration. I am getting the homepage, but any time I am trying to get views from outside the homepage I get 404 server error: "The requested URL /url_path/ was not found on this server." (I would expect

Re: No Database table for model NewRider (expected "nnew_riders"), create it first.

2007-03-27 Thread [EMAIL PROTECTED]
Nevermind i just went and downloaded a nightly and now it works fine. so so you know the current stable release isnt good, get the nightly release instead. On Mar 27, 11:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > No Database table for model NewRider (expected "nnew_riders"), create

No Database table for model NewRider (expected "nnew_riders"), create it first.

2007-03-27 Thread [EMAIL PROTECTED]
No Database table for model NewRider (expected "nnew_riders"), create it first. this doesnt seem right to me. its asking me to create a new table called nnew_riders? this doesnt compute. heres my model and my controller for table new_riders. controller: model: this should create a scaffold l

Showcasing www.votigo.com

2007-03-27 Thread daddycool
Hello Everyone, I would like to introduce all of you to the website I just finished coding (first phase) alongwith a couple of my friends. The site in question is - www.votigo.com (vot[e]-i-go). I am hoping this should add great value to your showcase :) Votigo is an online community that allows

Re: Testing Plugins

2007-03-27 Thread Sonic Baker
Hi Guys, On 3/27/07, hydra12 <[EMAIL PROTECTED]> wrote: > > > I prefer the first option, but like I said, I don't have a lot of > experience with this yet. Me too. Definitely. I haven't made any plugins myself yet so I can't test this but have you tried just calling the plugin test files from a

Re: FileHandler Question - plz help

2007-03-27 Thread fredBH
Hi everyone, I still having problems with get upload working in my App... I have found this App -> www.sanisoft-demo.com/photoBlog/index.php?url=/posts/add and its just that i need :P I have found the code of this App, but, unhapppiness, the code is too old(2005)... and dont work anymore, th

Re: Using cakephp with wordpress

2007-03-27 Thread thequietlab
thanks for the links but as I got deeper into it I had too much problems with these two systems overriding themselves.. I'll probably try to find another way.. btw.. I'll describe my problem shortly, maybe someone tried it before: I have a cake app with user registration (I use oth_auth for authen

Re: Admin Routing Techniques

2007-03-27 Thread Sonic Baker
Hi Guys, Thanks again for the further suggestions. @french13: Unless I'm not following what you are suggesting, I don't think you're following what I'm asking, (in which case I'm not surprised when I come out with sentences like this one :) I'm just looking for the best way to minimise code dupl

Re: IIS reloaded with 1.2

2007-03-27 Thread Chambrln
I am currently using 1.2 with IIS as well. I do not have ISAPI Rewrite configured for use at the moment and was having similar problems. There is a Constant defined in /app/config/core.php that you need to uncomment on line 40 - define ('BASE_URL', env('SCRIPT_NAME')); This basically tells cak

Re: Bake.php Broken? Or am I doing something wrong?

2007-03-27 Thread Jeff
> they need to review this and work on it. > > A little demanding I think, but if you follow the trac site and search the > google group you will see references to the latest nightly builds which have > the fix already added. Sorry for being so rude. I really appreciate the work that is being do

Re: Testing Plugins

2007-03-27 Thread hydra12
I'm just starting out with testing, so I don't have a lot of experience to draw from, but I think the best way to test a plugin would be to put the tests and the db-config into the plugin folder. That would be in keeping with the concept that a plugin is a mini-app that can be dropped into an exis

Re: Url parameters implementation question

2007-03-27 Thread djiize
you can store them in the session On 27 mar, 18:31, "RLR" <[EMAIL PROTECTED]> wrote: > In my addressbook application I have several paged addresses and a > search form. When I edit an address and save it I redirect the browser > and loose all parameters (search words etc.) > > Is there a cakephp

Re: Admin Routing not functioning

2007-03-27 Thread djiize
maybe it's just a typo in your message, the correct url is /admin/ comments/ On 27 mar, 19:00, "RG" <[EMAIL PROTECTED]> wrote: > I have define('CAKE_ADMIN', 'admin'); defined in the core.php file. > When I add function admin_index() in my comments controller and > navigate to /comments/admin I ge

Re: Testing Plugins

2007-03-27 Thread Daniel Hofstetter
Well, testing of plugins is not (yet) implemented. What do you think would be the best approach to test plugins? -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: saving HABTM posts->tags

2007-03-27 Thread davyke
14 DELETE FROM `CHEESECAKE_photos_tags` WHERE photo_id = '1' 2 0 15 INSERT INTO `CHEESECAKE_photos_tags` (photo_id,tag_id) VALUES ('1','3') 1 0 16 INSERT INTO `CHEESECAKE_photos_tags` (photo_id,tag_id) VALUES ('1','1')

Re: Help Using Date Range with findAll

2007-03-27 Thread Dan
Hi, bit of a noob so this could well be my problem (isn't it always ;) I'm doing a little date comparison such as you suggested > 2) > $conditions['Post.created'] = 'BETWEEN 2007-02-01 AND 2007-02-28'; > (iirc) but not getting any results. So I dumped out the contents of the cake generated S

Admin Routing not functioning

2007-03-27 Thread RG
I have define('CAKE_ADMIN', 'admin'); defined in the core.php file. When I add function admin_index() in my comments controller and navigate to /comments/admin I get the Missing Method in CommentsController error when I should receive the missing view error. I have used admin routing before withou

RE: Using cakephp with wordpress

2007-03-27 Thread Mariano Iglesias
You may also want to check Drupal-CakePHP and Joomla-CakePHP integration: http://dev.sypad.com/projects/drake http://dev.sypad.com/projects/jake -MI --- Remember, smart coders answer ten questions for every question they

Url parameters implementation question

2007-03-27 Thread RLR
In my addressbook application I have several paged addresses and a search form. When I edit an address and save it I redirect the browser and loose all parameters (search words etc.) Is there a cakephp way or best practice to store and retrieve these url parameters application wide? Thanks! --

Re: HABTM saving problem

2007-03-27 Thread [EMAIL PROTECTED]
feelexit, in order to save the data to tags table you must have in the data returned ($this->data) data relating to the Tag model like this data['Tag'['Tag'] = array ( 'id' => '1' , 'id' => '2'...) where ['Tag']['Tag'] contains an array of id's corresponding to tag id's. You can find more info o

Re: Data cleanup in Model

2007-03-27 Thread NOSLOW
"...the error I get shows that a query ('__sanitize') is being made to the db. " I'm not sure, but it sounds like you're accidentally placing '__sanitize' as a string inside your $data array, instead of the *results* of that function. This would then get passes through to the SQL call causing the

Re: Using cakephp with wordpress

2007-03-27 Thread thequietlab
for those interested.. after replacing __() with wp__() wordpress starts together with cakephp without any problems so there are two functions with the same name. I just started with it so problems may appear when loading requests.. I'll try it.. --~--~-~--~~~---~--~

Re: getLastInsertID - multiple user are entering data??

2007-03-27 Thread [EMAIL PROTECTED]
What this means is that there is a db connection per user using the app, so If you add something to a table and get the last insert id, it will return the last insert id you did on your db connection, regardless whether there are more users logged in and or manipulating the db, last insert id's wo

Re: Testing Plugins

2007-03-27 Thread AD7six
On Mar 27, 4:27 pm, "hydra12" <[EMAIL PROTECTED]> wrote: > I'm playing with CakeBaker's test suite. Does anybody know if you can > use it to test plugins? You know, I was wondering that only yesterday... AD7six --~--~-~--~~~---~--~~ You received this message be

Re: HABTM saving problem

2007-03-27 Thread feelexit
another question is , in the posts with tags example, when I am doing save, only save post table or posts_tags will be saved as well ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Using cakephp with wordpress

2007-03-27 Thread thequietlab
Has anybody tried it ? I followed an example from : http://www.thinkingphp.org/2006/05/04/using-cakephp-in-external-php-systems-cmss-weblogs-etc/ Nice approach...and everything would be great if not functions with the same name in wordpress. I did a quick & bad hack for stripslashes_deep() renami

Re: Group , Permission to edit table

2007-03-27 Thread cc96ai
i still can't find the way to get the ACO corresponding ARO any help ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Newbie questions

2007-03-27 Thread MrTufty
If you're not sure how to manage the layout structure yet, the last thing you need is medium/advanced tutorials. Cake is very simple to learn the basics of, and extremely powerful once you've gotten your head around the conventions. To be able to help, you'll need to say which version you're pre

Re: Newbie questions

2007-03-27 Thread feelexit
make new file, header.thtml in hte component folder. and in ur layout, renderElement('header'); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@

Newbie questions

2007-03-27 Thread Luca.PESCATORE
Hello, I'm a newbie with CakePHP. How can I manage with layouta structure with a top menu, a main content and a right content ? Where I can find some medium / advanced tutorial for cakePHP ? Is it available an integration with the qooxdoo library (you find it on sourceforge) Luca --~--~

Testing Plugins

2007-03-27 Thread hydra12
I'm playing with CakeBaker's test suite. Does anybody know if you can use it to test plugins? Right now, it only sees tests in my app/tests folder, not in plugins/pluginName/tests. When I put my tests in app/ tests, I get an error because it can't find my models/controllers/etc. Anybody have a

HABTM saving problem

2007-03-27 Thread feelexit
I have 3 tables tags resources resources_tags in my controller, i use " print_r ($this->data); " to print out data structure Array ( [Resource] => Array ( [title] => hhh [description] => [user_id] => 1 ) ) it only has data for Resource, there's no data for Tag. here's my HTML code.

Re: getLastInsertID - multiple user are entering data??

2007-03-27 Thread bingo
Hi langdon, [EMAIL PROTECTED], Thanks for your reply. I checked the group for getLastIsertID and found many discussion. I also found the discussion where nate has replied. However I was not sure what does it mean "scoped to the current database connection". I have asked nate for explanation... R

Re: DEBUG 0 and I do not see anything

2007-03-27 Thread Ámon Tamás
Larry E. Masters aka PhpNut írta: > > If I upload the new version of my work to the server with DEBUG,0 I > don't see anything. BUt when I change it to 1 and refreshing, after > change back to 0 everything is ok. Why? I use 1.2 from svn. > > > Did you upload the app/tmp directory wi

DEBUG 0 and I do not see anything

2007-03-27 Thread Ámon Tamás
Hello, If I upload the new version of my work to the server with DEBUG,0 I don't see anything. BUt when I change it to 1 and refreshing, after change back to 0 everything is ok. Why? I use 1.2 from svn. -- Ámon Tamás --~--~-~--~~~---~--~~ You received this m

Re: DEBUG 0 and I do not see anything

2007-03-27 Thread Jon Bennett
> > If I upload the new version of my work to the server with DEBUG,0 I > > don't see anything. BUt when I change it to 1 and refreshing, after > > change back to 0 everything is ok. Why? I use 1.2 from svn. > > Did you upload the app/tmp directory with all of your models, etc. cached? > If so tha

Re: HtmlHelper->input vs FormHelper->input

2007-03-27 Thread nate
FormHelper::input() is a wrapper method that automatically generates extra output, i.e. error messages, wrapper 's and labels. If you want just the form element and *not* the extra stuff, you're better off using the specific method that you want, i.e. $form- >text( ) or $form->select( ). On Mar

Re: CMS: How to set pages to have 'parents'?

2007-03-27 Thread AD7six
On Mar 27, 2:56 pm, "double07" <[EMAIL PROTECTED]> wrote: > Still wrestling with this issue. Managed to contact the author of the > script and they re-wrote it a bit, but still no joy for me. See > comments here:http://othy.wordpress.com/2006/06/03/generatenestedlist/ > > The generateNestedList(

Re: DEBUG 0 and I do not see anything

2007-03-27 Thread Larry E. Masters aka PhpNut
> If I upload the new version of my work to the server with DEBUG,0 I > don't see anything. BUt when I change it to 1 and refreshing, after > change back to 0 everything is ok. Why? I use 1.2 from svn. Did you upload the app/tmp directory with all of your models, etc. cached? If so that would be

RE: HtmlHelper->input vs FormHelper->input

2007-03-27 Thread Mariano Iglesias
Yes of course, as it was pointed out before form-related methods are moving into FormHelper. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge.

Re: CMS: How to set pages to have 'parents'?

2007-03-27 Thread double07
Still wrestling with this issue. Managed to contact the author of the script and they re-wrote it a bit, but still no joy for me. See comments here: http://othy.wordpress.com/2006/06/03/generatenestedlist/ The generateNestedList() function just produces an empty variable. I did notice in debug mo

Ajax: inactive ajax/javascript in a div updated

2007-03-27 Thread Steniskis
Hi all, I update a div with a form echo $ajax->submit('Soumettre', array('url' => '/tournees/search', 'update' => 'tableau_tournees')); This div contains a list with calls to thickbox. These calls display other forms to edit or delete the line in the list. When the page is displayed, all is ok but

Re: HtmlHelper->input vs FormHelper->input

2007-03-27 Thread djiize
On 27 mar, 13:43, "Adrian Maier" <[EMAIL PROTECTED]> wrote: > On 3/27/07, djiize <[EMAIL PROTECTED]> wrote: > > > Hello > > > Html helper is the old way, and Form helper the ne cutting-edge one > > (and I like it a lot ;)) > > > To get rid of div and label, you can write > > $this->input('tagname'

Re: Question Regarding Complex Find Conditions and HABTM

2007-03-27 Thread Jon Bennett
> To answer my own question, I've found this open Trac ticket which > addresses this issue: https://trac.cakephp.org/ticket/1209 looks like > it's currently slotted for 1.2 release. check out AD7six's post here http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825050ad543/01409274

master/slave mysql replication and cake

2007-03-27 Thread sque_
Hi guys, I've been trying to get master/slave replication set up with my cake app all morning, but so far am not having much luck. I found this post regarding it from December on the google group: http://tinyurl.com/34azu3 My app is set up just like this (using cake 1.1) but all queries are sti

Re: how to name my model file?

2007-03-27 Thread Daniel Pape
Check the cake conventions: http://manual.cakephp.org/appendix/conventions 2007/3/27, feelexit <[EMAIL PROTECTED]>: > > > Got table called "posts_tags", I need to have model for this table, > should I name it to > post_tag.php > or > posttag.php > or > postTag.php > > and what about class

Re: HtmlHelper->input vs FormHelper->input

2007-03-27 Thread Adrian Maier
On 3/27/07, djiize <[EMAIL PROTECTED]> wrote: > > Hello > > Html helper is the old way, and Form helper the ne cutting-edge one > (and I like it a lot ;)) > > To get rid of div and label, you can write > $this->input('tagname', array('div' => false, 'label' => false)); Thanks for sharing this inf

Re: Question Regarding Complex Find Conditions and HABTM

2007-03-27 Thread space_boy
On Mar 27, 10:50 am, "space_boy" <[EMAIL PROTECTED]> wrote: > In the 'Complex Find Conditions (using arrays)' section of the Models > chapter in the manual (http://manual.cakephp.org/chapter/models), it > is suggested that you can search multiple models using a conditions > array such as: > > arra

Re: PHPmailer

2007-03-27 Thread Enchy
Hi Thanks for advise , I know I have to brush up on my OOP even though I been programming PHP for over 5 years I still battle with it. I am actually following the tutorial I found at cakephp and thats directly copied out. Im calling in Cakephp like this: var $components = array ('Pagination',

Re: HtmlHelper->input vs FormHelper->input

2007-03-27 Thread djiize
Hello Html helper is the old way, and Form helper the ne cutting-edge one (and I like it a lot ;)) To get rid of div and label, you can write $this->input('tagname', array('div' => false, 'label' => false)); If you plan to use Cake 1.2, I don't think it's a good idea to continue with html helpe

how to name my model file?

2007-03-27 Thread feelexit
Got table called "posts_tags", I need to have model for this table, should I name it to post_tag.php or posttag.php or postTag.php and what about class file class Post_tag extends AppModel{} or class Post_Tag extends AppModel{} --~--~-~--~~~---~--~~ You received

Question Regarding Complex Find Conditions and HABTM

2007-03-27 Thread space_boy
In the 'Complex Find Conditions (using arrays)' section of the Models chapter in the manual (http://manual.cakephp.org/chapter/models), it is suggested that you can search multiple models using a conditions array such as: array ("Author.name" => "Bob", "or" => array ( "Post.title" =>

Re: How to protect site/admin with an .htaccess file?

2007-03-27 Thread Daniel Pape
Hi. I protect the admin section with beforeFilter in AppController, SessionComponent and a simple AuthController: function beforeFilter() { if(!empty($this->params['admin']) && $this->params['admin'] == CAKE_ADMIN) { $this->checkSession(); } } function checkSession() { // I

Re: phpThumb Component

2007-03-27 Thread mcgordon
I just got the component working last night and I was getting the same error until I changed a couple of the phpThumb config settings. If you're using phpThumb in "object" mode you'll have to make these changes in the phpthumb.class.php file. There is a file in the distribution called phpThumb.c

How to protect site/admin with an .htaccess file?

2007-03-27 Thread [EMAIL PROTECTED]
Could you advice me please, how to protect /admin/ part of website? Is it possible to protect with an .htaccess file? I would like to protect with .htaccess following: example.com/admin/news/add example.com/admin/news/edit example.com/admin/news/delete ... Thank you a lot. --~--~-~--~--