Re: Disable Cache Dynamically

2009-05-07 Thread deedod
Is there any danger in starting the session in /app/config/core.php If I run session_start() at the top of this file then I can do a simple check to see if my admin session is set and then set the Cache.check variable accordingly. I'd like to do this in the appropriate manner but this seems to w

Disable Cache Dynamically

2009-05-07 Thread deedod
Hello All, Right now I'm using view caching and it's working great. However, I'm running into a problem. I'd like to be able to dynamically turn the view caching on and off depending on if an admin is logged in. The problem is that all my checks if a user is logged in occur in the controllers.

Re: Need help converting this MySQL command into cakePHP find()

2009-05-07 Thread liaogz82
sorry mistake. I have correct the unknown column problem. But i faced another issue Undefined variable: conditions [APP/controllers/ subscribers_controller.php, line 24] On May 8, 10:09 am, liaogz82 wrote: > Sorry this doesnt work. It still gives me this error: > > Warning (512): SQL Error: 1

Re: Associations not getting data question

2009-05-07 Thread John Andersen
Hi Dave, Please show the code, not just write it again, but copy and paste it into the post, so there are no possibilities of typos! 1) Show the controllers code (copy/paste it), how you are "pulling" the Post information. 2) Show the model associations (copy/paste it). Enjoy, John On May 8,

Re: Add "created" field to HABTM join tables

2009-05-07 Thread Brendon Kozlowski
The `created` field must (1)be a datetime field, (2)NULL must be allowed, (3)and default to NULL value. Once that field is set as such, the magic behavior should begin working. On May 7, 7:23 am, "marco.rizze...@gmail.com" wrote: > Hi > I have added "created" field to HABTM join tables, but whe

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread park
No HABTM counterCache Ignoring callbacks on associative queries On May 8, 6:29 am, Nate wrote: > Well, maybe hate's a strong word.  Let's say, what do you like the > least?  Kind of an odd question, I know, but since we've kick-started > development of a new version, I'd like to know what the mo

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread Marcelo Andrade
On Thu, May 7, 2009 at 7:29 PM, Nate wrote: > > Well, maybe hate's a strong word.  Let's say, what do you like the > least?  Kind of an odd question, I know, but since we've kick-started > development of a new version, I'd like to know what the most > frustrating things with the framework are, ev

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread Okto Silaban
PHP 4 support+++ No built in Uploader component++ On Fri, May 8, 2009 at 5:49 AM, Miles J wrote: > > - PHP 4 support also > - No namespaces > - No built in Uploader component --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: 3-Table Problem!

2009-05-07 Thread MinaTSU
John, thank you for the reply. I will follow your suggestion. Is my approach good? Any other suggestions of how to tackle the situation I'm describing? Thanks! MinaTSU On May 8, 2:02 am, John Andersen wrote: > You may consider not making a field "leader", but a field "role", so > that you can

Re: Need help converting this MySQL command into cakePHP find()

2009-05-07 Thread liaogz82
Sorry this doesnt work. It still gives me this error: Warning (512): SQL Error: 1054: Unknown column 'SubscriberContact' in 'where clause' [CORE/cake/libs/model/datasources/dbo_source.php, line 514] is there a way to use joinModel method? On May 6, 3:59 pm, Mohsin Kabir wrote: > Hello , > Ther

RE: Foreign Key

2009-05-07 Thread Dave Maharaj :: WidePixels.com
I had a thought because of unique slugs but it made no sense...was just wondering if was possible...no big deal Thanks Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: May-07-09 11:30 PM To: CakePHP Subject: Re: Foreign Key Why would it be a varchar? Its

Re: Foreign Key

2009-05-07 Thread Miles J
Why would it be a varchar? Its usually INT to go with auto_increment settings. --~--~-~--~~~---~--~~ 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 To unsubs

Foreign Key

2009-05-07 Thread Dave Maharaj :: WidePixels.com
Does the foreign key in related tables have to be and INT? Can it be VARCHAR? Dave --~--~-~--~~~---~--~~ 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 To u

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread kiang
PHP 4 support++ ... PHP 4 support++ --- kiang On 5月8日, 上午6時29分, Nate wrote: > Well, maybe hate's a strong word. Let's say, what do you like the > least? Kind of an odd question, I know, but since we've kick-started > development of a new version, I'd like to know what the most > frustrating

Execute an SQL file

2009-05-07 Thread mattalexx
Is there any way to execute an SQL file that you've saved to App/ config/sql? --~--~-~--~~~---~--~~ 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 To unsubscr

Associations not getting data question

2009-05-07 Thread Dave Maharaj :: WidePixels.com
I am trying to pull a Post and the note associated to it from a Bookmark table but nothing is coming. POST hasMany 'Bookmark' => array( 'className' => 'Bookmark', 'foreignKey' => 'post_key', 'dependent' => true ), BOOKMARK belngsTo 'Post' => array('className' => 'Post', '

Re: Poll: what do you hate about CakePHP?

2009-05-07 Thread Miles J
- PHP 4 support also - No namespaces - No built in Uploader component --~--~-~--~~~---~--~~ 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 To unsubscribe from

Re: Can't get $javascript->Object() working !

2009-05-07 Thread Nate Abele
Can you show us an array dump of $channel_list, and the final output of the $javascript->object() call? On May 7, 6:55 am, JAVAddicted wrote: > I'm trying to convert a php array into a json-friendly format but the > following code doesn't output anything: > > ### Controller: > > class ChannelsC

Poll: what do you hate about CakePHP?

2009-05-07 Thread Nate
Well, maybe hate's a strong word. Let's say, what do you like the least? Kind of an odd question, I know, but since we've kick-started development of a new version, I'd like to know what the most frustrating things with the framework are, even if they're things we can't fix right away. I'll get

Supposed to look?

2009-05-07 Thread Dave Maharaj :: WidePixels.com
Just wondering if this looks normal to those who have been using jQuery. When I look at the js in firebug i see $(function() { $('.test').editable('/notes/mynote/' , { id: 'data[Note][post_key]', name : 'data[Note][note]', type : 'text',

Re: Auth component cache problem in Internet Explorer

2009-05-07 Thread rartavia
> The weirdest part is that even when I told auth to allow that specific > action, I checked my data that arrived correctly but still the save() > didn't occurred. About that, do ignore it, that happen because in that saving, user_id is required and as in that request is null so a db error occur

Re: Same queries in different controllers

2009-05-07 Thread Nancy
This seems like a good time to say "Doh!". Thanks much. :) On May 6, 6:59 pm, "Dr. Loboto" wrote: > app_model.php > > On May 7, 12:00 am, Nancy wrote: > > > So, this was great but I'm wondering if I can go a bit further with > > this. > > > All these tables have queries that are very similar, s

Re: Auth component cache problem in Internet Explorer

2009-05-07 Thread rartavia
I'm having a similar problem with internet explorer 8. I sending data via ajax to my controller, in Firefox, Safari, Chrome and Opera works quite all right. However, seems like IE fails to send the login info. My requests failed in IE so I did $this->log($this- >Session->read('Auth.User'), LOG_DEB

How define a unique js, css and img for all apps?

2009-05-07 Thread Celso
We try using this: if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', 'c:'.DS.'wamp'.DS.'www'.DS); and works, but... how make the same for js, css and imgs? does not work: if (!defined('WEBROOT_DIR')) { //define('WEBROOT_DIR', basename(dirna

Re: Pass variable to jQuery

2009-05-07 Thread DuncanBrown
Take a look at this post, http://debuggable.com/posts/passing-controller-variables-to-your-javascript:48b4f0c6-c718-47b2-bca1-05794834cda3 This works well. On May 7, 7:45 pm, "Dave Maharaj :: WidePixels.com" wrote: > Right thanks, > > Going to test it out, try the first example first. > > Where

RE: Pass variable to jQuery

2009-05-07 Thread Dave Maharaj :: WidePixels.com
Right thanks, Going to test it out, try the first example first. Where do I put the codeblock you have? MVC? Thanks for the detailed response, Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: May-07-09 3:38 PM To: cake-php@googlegroups.com Subject: Re: Pass var

Javascript code in RemoteTimer

2009-05-07 Thread Chad Casselman
I setup a remote time just fine, but I need the url to pull a value from the page before it executes. The problem is the helper is parsing/sanatizing all the code so I can't get executable code in the call itself. Here is what I attempted (along with many other things but I can't seem to get it t

Re: Pass variable to jQuery

2009-05-07 Thread brian
There are a couple of ways to handle this. The most straightforward way would be to create a global JS var. You can do this by having Cake generate a JS block like so: $javascript->codeBlock('var post_key = ' . $this->data['Note']['post_key'] . ';'); As long as the jquery code that needs to acce

Re: Problem with FormHelper::checkbox(...)

2009-05-07 Thread Marcelo Andrade
On Thu, May 7, 2009 at 2:02 PM, Javier wrote: > > We are using a checkbox in our application and with a condition we > want to disable it. > > $form->checkbox('name', array('disabled' => $condition)); > > FormHelper::checkbox creates an input hidden and an input checkbox > element, but the hidden

shell scripts - maximum character width?

2009-05-07 Thread BrendonKoz
Do the cake shell scripts have a set maximum character length before it forces a newline wrap to keep formatting? I keep noticing on my Windows' DOS prompts that the format looks pretty difficult to read in some circumstances (cake api, acl shell, etc...) and was wondering if there's a certain wi

Re: Bake a Cake

2009-05-07 Thread Beedge
Thanks for that, but its not quite the same. Ive downloaded latest php and installed, but no joy. I wonder has anyone else any suggestions? This is a killer, because I am completely stuck, I had been enjoying coming home and making little bits of progress each night, but this has totally put a s

Re: User registration - Email verification using tokens

2009-05-07 Thread niki
thanks for the help people I have written the code... chk out http://www.nikatrex.com/blog/?p=300 cheers and thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, sen

Pass variable to jQuery

2009-05-07 Thread Dave Maharaj :: WidePixels.com
I finally have the courage to drop the built in Ajax helper and expand into jQuery. So my first question so far is how do i pass a variable to jQuery? In the function below where VARIABLE HERE is i need to pass data[Note]['post_key'] (data[Note]['post_key'] is just a unique identifier string some

Re: 3-Table Problem!

2009-05-07 Thread John Andersen
You may consider not making a field "leader", but a field "role", so that you can assign possible future roles, that members may play in a project - example: manager, coder, analyst, designer, technical writer, etc. Enjoy, John On May 7, 3:59 pm, MinaTSU wrote: > Hello everybody! > > First

Problem with FormHelper::checkbox(...)

2009-05-07 Thread Javier
We are using a checkbox in our application and with a condition we want to disable it. $form->checkbox('name', array('disabled' => $condition)); FormHelper::checkbox creates an input hidden and an input checkbox element, but the hidden element is always disabled, making it useless. It get disabl

Re: Limit $paginate->numbers()

2009-05-07 Thread Benedikt R.
Thanks for your answers, but I meant the amount of numbers, that is displayed when calling the numbers-function. The solution is the parameter 'modulus'. Example: $paginator->numbers(array('modulus'=>3)); --~--~-~--~~~---~--~~ You received this message because you

Re: validation help

2009-05-07 Thread matalina
I think I figured it out I had my model file named wrong. yep that was the problem thanks for the help. On May 7, 8:16 am, matalina wrote: > arif's sugggestion didn't work either > > Dr. Loboto I'm not sure how that will help since the data is saving to > the database correctly.  When I put in

Re: Limit $paginate->numbers()

2009-05-07 Thread brian
On Thu, May 7, 2009 at 11:11 AM, Stu wrote: > > yeah, I actually call it from the app_controller, for I need a page > limit of 10 entries globally so mine actually looks like: > > var $paginate = array('limit'=>10); > > but, if you want to change it for one controller, yes it would be: > > $this-

Fatal Error installing Cake on PHP 4.3.10/Apache 1.3.31

2009-05-07 Thread WireX
Unfortunately I'm in an organization that is very limited in what we can upgrade to and we are unable to run our own server in the division. I'm stuck using Apache 1.3.31 with PHP 4.3.10 which I know are woefully old but I'm hoping might still work. Using a base install with exception of me inclu

Re: validation help

2009-05-07 Thread matalina
arif's sugggestion didn't work either Dr. Loboto I'm not sure how that will help since the data is saving to the database correctly. When I put in an empty field it saves the empty field instead of outputting an error message. When I put in a category name it saves it. Gwoo #2: But the data i

3-Table Problem!

2009-05-07 Thread MinaTSU
Hello everybody! First post. CakePHP newb! Apologies beforehand if this was answered beforehand. (I did a search with no success). Here is the problem I'm facing: I'm designing the database of a new site. The site is to host several projects. People in order to join projects first have to regis

Translate Behavior Problem

2009-05-07 Thread gunjan
dear all i m new for cakephp and i need help and support from you all. when i use Translate Behavior my combo (dropdown) field changes as per locale choice but the id it save in the transaction table is diffrent for the same field. is it possible to get the same id whatever laguage i save. Kindly

Can't get $javascript->Object() working !

2009-05-07 Thread JAVAddicted
I'm trying to convert a php array into a json-friendly format but the following code doesn't output anything: ### Controller: layout = "ajax"; //make cake use the ajax layout $channelArray = array(); //this will hold our data from the database. $count = $this->C

Re: Add dynamic CSS to head from element?

2009-05-07 Thread brian
/** * Builds CSS style data from an array of CSS properties * * @param array $data Style data array * @param boolean $inline Whether or not the style block should be displayed inline * @return string CSS styling data */ function style($data, $inline = true) { On Thu, May 7, 2009 at 3:33 AM

Re: Bake a Cake

2009-05-07 Thread Flipflops
I had a total bitch of time getting PHP CLI working when I moved from Apache2Triad to XAMP on my Win XP laptop - but I did get it working in the end. As I recall PHP was looking at the wrong php.ini file. I appreciate that you are using WAMP not XAMP but I wrote up what I did on my blog - might o

Re: big big big problem!!!!

2009-05-07 Thread brian
You've obviously got a lot of other custom session code that you're not showing. There's not much that can be concluded about what you've shown. On Thu, May 7, 2009 at 3:20 AM, henry wrote: > > hi brian, > > Thank you reply at first.  Below is the index action code. > if(empty($_SERVER['HTTP_REF

Re: Limit $paginate->numbers()

2009-05-07 Thread Stu
yeah, I actually call it from the app_controller, for I need a page limit of 10 entries globally so mine actually looks like: var $paginate = array('limit'=>10); but, if you want to change it for one controller, yes it would be: $this->paginate = array('limit' => 10); --~--~-~--~~

Re: Problems with hidden input on submit

2009-05-07 Thread lucas
this are the fragments: -view: hidden('collparamIDS',array('value'=> $paramTestcollparameterID));?> -edit action: $this->set('paramTestcollparameterID', $parameterTestcollparamID); -html code: i´m loading all the hidden inputs in the same way, and accessing them the same way

Re: Problems with hidden input on submit

2009-05-07 Thread rich...@home
Can you post your form code and controller action code? On May 7, 1:06 pm, lucas wrote: > Hi, i have this problem that is killing me slowly jeje, in my view a > have about 14 or 15 hidden inputs cause i need them in the edit > action. But when i submit the page, one of them is not submitted and

setFlash can not work on IE6?

2009-05-07 Thread joshua
Is there anyone run cake app on IE6? It seems the setFlash can not work on IE6. It was fine on firefox when we set a flash after redirect to a page. -- Thanks Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Add dynamic CSS to head from element?

2009-05-07 Thread majna
it is. http://api.cakephp.org/search/addScript On May 7, 2:00 pm, toby1kenobi wrote: > That (addScript) doesn't appear to be a cake method? > > On May 7, 11:15 am, majna wrote: > > > > $style = ' > >                         #navigation-holder a#logo span { > >                              bac

Problems with hidden input on submit

2009-05-07 Thread lucas
Hi, i have this problem that is killing me slowly jeje, in my view a have about 14 or 15 hidden inputs cause i need them in the edit action. But when i submit the page, one of them is not submitted and the rest are submitted fine. I checked the html code and looks fine, so the hidden input is not

Re: Add dynamic CSS to head from element?

2009-05-07 Thread toby1kenobi
That (addScript) doesn't appear to be a cake method? On May 7, 11:15 am, majna wrote: > $style = ' >                         #navigation-holder a#logo span { >                              background:transparent url(../img/logo.jpg) > no-repeat left > top; >                         } >        

Re: Bake a Cake

2009-05-07 Thread Beedge
Ive followed that tutorial to the letter and still get the same result, my Path variable is correct (C:/wamp/www/cake/console) because Ive copied that path into explorer and I can see the batch file as far as I can tell my PHP is a CLI build because when I copied that path into explorer (to chec

Re: Auth and appController problem

2009-05-07 Thread harpax
Nevermind that question: I forgot, that I had a beforeRender in the Users controller, that didn't have the parent::beforeFilter().. greetings, harpax On 7 Mai, 11:28, harpax wrote: > Hello group, > > I got a (hopefully) small problem with the authentication component > combined with the beforeF

Add "created" field to HABTM join tables

2009-05-07 Thread marco.rizze...@gmail.com
Hi I have added "created" field to HABTM join tables, but when I try to do a save I noted that this field aren't updated automatically. Is it normal or that is some problem? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: CakePHP and web services support

2009-05-07 Thread atta
Yeah its really a Fu***ing Manual. Nothing explained there . Atta Graham Weldon-2 wrote: > > > I'm going to say it... RTFM. > > http://book.cakephp.org/view/476/REST > > Cheers, > Graham > > > Ma'moon wrote: >> Hello guys, >> Any one knows a good example usage for creating RESTfull web

problem with use of unique attribute in HABTM

2009-05-07 Thread marco.rizze...@gmail.com
Hi I use the unique attribute in a HABTM relation. Now If it's true (default value) cake should first delete existing relationship records in the foreign keys table before inserting new ones, when updating a record. Instead I noted that it happens only if in updating operation I have the data rel

Re: Bake a Cake

2009-05-07 Thread majna
try with http://cakephp.org/screencasts/view/6 check again Environment Variables->System Variables->Path On May 7, 12:20 pm, Beedge wrote: > Hi all, > Im (still) trying to get my head around cake. Im following the > excellent IBM tutorial and Im on part 2. All is going well except for > one t

Bake a Cake

2009-05-07 Thread Beedge
Hi all, Im (still) trying to get my head around cake. Im following the excellent IBM tutorial and Im on part 2. All is going well except for one thing.. I cant get the console to work :( This is my setup, Windows Vista using WAMP. Ive set the environmental path variables to C:\wamp\bin\php \php5

Re: Add dynamic CSS to head from element?

2009-05-07 Thread majna
#navigation-holder a#logo span { background:transparent url(../img/logo.jpg) no-repeat left top; } '; $this->addScript('test', $style); ?> On May 7, 9:33 am, toby1kenobi wrote: > Hi there, > >   As m

How to use default element in a theme?

2009-05-07 Thread Jeroen
I'm using the theme 'views/themed/fotoalbum'. The element I want to use is a default element, which is located in 'views/elements'. When I do element('element') ?> Cake searches for the element in views/themed/fotoalbum/elements, and (of course) Cake couldn't find it. Is it possible to use the d

Re: Tree Behaviour in Component

2009-05-07 Thread ixopo
This works Thank you so much greetingz ixopo --~--~-~--~~~---~--~~ 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 To unsubscribe from this group,

Auth and appController problem

2009-05-07 Thread harpax
Hello group, I got a (hopefully) small problem with the authentication component combined with the beforeFilter function in the appController. I use the following code in app/appController.php: -- class AppController extends Controller { var $components = array('Auth'); function

Re: Setting ALT text in TextImageHelper

2009-05-07 Thread Turgs
Thanks Mohammad I'm actually using the TextImageHelper, not just the HtmlHelper. The TextImageHelper is a wrapper around the HtmlHelper that also creates the image from a supplied text. I'd love any further help anyone can give. Cheers Turgs --~--~-~--~~~---~--~~

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-07 Thread grandpa
I use git for all my projects. I used git with cake back when cake was only officially in an svn repo. Now that cake is officially in a git repo, why dont you just learn and use git? First you clone the cake git repo at http://thechaw.com/cakephp (you will need an account there). It's extremely

Re: remove the blue header on cake1.2

2009-05-07 Thread dr. Hannibal Lecter
The "blue header" is a part of what surrounds your content, also known as "layout". To learn more about those, read the book: http://book.cakephp.org/view/96/Layouts On May 7, 7:52 am, salmia69 wrote: > hi guys, > >  I'm newbie here.now I'm doing project with cake1.2. i want to remove > the bl

Re: Using translated content

2009-05-07 Thread oleonav
Hi Karim, I am using only one table 'pages' and one model 'Page' 'Translation' is the key under which the results for translations are returned from the model. The beforeFind action ads the language key to the query (which I set using Configure::write('lang','... language key ') ) and repla

Re: Get autoincrement ID after save (insert)

2009-05-07 Thread Walther
$this->ModelName->id also works. On May 7, 9:33 am, Günther Theilen wrote: > Sorry, typo. > > It should be getInsertID(). > > > Hi, > > > $last_id = $this->ModelName->getInsertId() should do the trick. > >http://api.cakephp.org/class/model#method-ModelgetInsertID > > > Regards > > Guenther > > >

Re: Get autoincrement ID after save (insert)

2009-05-07 Thread Miles J
You dont have to do it Gunthers way. $this->Model->save($data); // After save, id is the last inserted id $id = $this->Model->id; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Re: Reorganizing Controller

2009-05-07 Thread tienzyee
Halo again, I checked out private methods and tried putting the codes into 2 private methods, calling them from the main controller function. Unlike what I feared, the variables declared in the private method are available in the main controller as well and that saves a lot of time (the code look

override saveAll default params from a behavior

2009-05-07 Thread Ernesto
Hello. is there any way to override saveAll default params from a behavior?? --~--~-~--~~~---~--~~ 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 To unsubscr

Re: Get autoincrement ID after save (insert)

2009-05-07 Thread Günther Theilen
Sorry, typo. It should be getInsertID(). > Hi, > > $last_id = $this->ModelName->getInsertId() should do the trick. > http://api.cakephp.org/class/model#method-ModelgetInsertID > > Regards > Guenther > > Roman Brunnemann write: >> Hi, >> >> quick question from a newbie. After saving data that

Re: Add dynamic CSS to head from element?

2009-05-07 Thread toby1kenobi
Hi there, As mentioned, the styles are dynamically generated, I can't use a static file (is that what you mean?). $html-> 'seems' to only render style information inline - I could use this, but the code is executing in the context of an element that isn't in the document's head, it's in the bod

Re: Get autoincrement ID after save (insert)

2009-05-07 Thread Günther Theilen
Hi, $last_id = $this->ModelName->getInsertId() should do the trick. http://api.cakephp.org/class/model#method-ModelgetInsertID Regards Guenther Roman Brunnemann write: > Hi, > > quick question from a newbie. After saving data that will result in a > create, I'd like to retrieve the ID from th

Re: big big big problem!!!!

2009-05-07 Thread henry
I test my local cms system on different mac computer' safari brower. One mac computer's safari is work fine. But another mac computer's safari still doesn't work. It's very strange!!! After upload cms code to server, and test again. Then both safari brower not work. I'm spend a lot of time to

Re: big big big problem!!!!

2009-05-07 Thread henry
I test my local cms system on different mac computer' safari brower. One mac computer's safari is work fine. But another mac computer's safari still doesn't work. It's very strange!!! After upload cms code to server, and test again. Then both safari brower not work. I'm spend a lot of time to

Re: Need help with Upgrading Cake - best practices: Release: 1.2.3.8166

2009-05-07 Thread dr. Hannibal Lecter
There is a difference, but you can use either one. /app/vendors is 3rd party code for your application. /vendors however is 3rd party code for all the apps sharing that particular cake setup (see http://book.cakephp.org/view/35/Advanced-Installation for more info on that). On May 6, 5:35 pm, Jam

Re: big big big problem!!!!

2009-05-07 Thread henry
hi brian, Thank you reply at first. Below is the index action code. if(empty($_SERVER['HTTP_REFERER'])) { $this->returnToLoginPage(); } if(!$this->checkIsAvailablePlugin('user')){$this->retur

remove the blue header on cake1.2

2009-05-07 Thread salmia69
hi guys, I'm newbie here.now I'm doing project with cake1.2. i want to remove the blue header with link but till now i don't know how to do it. i have check at css file but nothing i can do.. please help me.. --~--~-~--~~~---~--~~ You received this message becau

Re: Form data will not save in DB!

2009-05-07 Thread arif hossen
Please follow this code: if your model name Tax (Model name must be table names singular number) $this->data['Tax']['feildname']; $this->Tax->save($this->data); On Thu, May 7, 2009 at 7:56 AM, Dr. Loboto wrote: > > Key in data array should be same as model alias. If your model named > Tax i

Re: validation help

2009-05-07 Thread arif hossen
I think it should be: array( 'rule' => 'alphaNumeric', 'required' => true, 'allowEmpty'=>false ) ); } ?> On Thu, May 7, 2009 at 7:57 AM, Dr. Loboto wrote: > > Output $this->data in controller and check actual data you try to > save. > > On May 7, 5:35 am, mata

Re: Setting ALT text in TextImageHelper

2009-05-07 Thread arif hossen
You can use this code for image tag for alt text in cakephp view . image($imagepath."blankimage.jpg", array('alt' => 'No Image', 'width'=> 130,'height' => 110)); ?> On Thu, May 7, 2009 at 8:35 AM, Turgs wrote: > > Hello > > I'm using the TextImage helper. > > When setting the ALT text for the

Re: Limit $paginate->numbers()

2009-05-07 Thread arif hossen
I think its: $this->paginate = array('limit' => 10); Thanks On Thu, May 7, 2009 at 1:45 AM, Stu wrote: > > Wait, > > did you mean the number of results displayed by page? If so : > > $paginate = array('limit'=>3); > > Cheers > > > -- Regards, Mohammad Arif Hossen Junior Web Developer Un

Get autoincrement ID after save (insert)

2009-05-07 Thread Roman Brunnemann
Hi, quick question from a newbie. After saving data that will result in a create, I'd like to retrieve the ID from the auto increment field in the database. e.g. I have a database table "person" with columns id, name, city. Now I create an array $array['Person'] = array( "name" => "John Smith