Re: Validation with CakePHP/ExtJS

2008-12-18 Thread bingo
I have written two custom function loadError and loadData to load validation errors and form data, respectively. The trick I use is to set name and id of a form field to data [ModelName][fieldName] ..loadError and loadData than automatically populate validation error and form data.. checkout mor

Re: Inflector::singularize converts "Is" to "I"

2008-12-18 Thread bingo
is not actually a plural... so... what behaviour would you > expect? > > Maybe some context of where you are using this would be beneficial. > > Cheers, > Adam > > On Dec 19, 12:45 pm, bingo wrote: > > > hi bakers, > > > I just stumbled across a weird pr

Re: How to pass data to javascript from cake's controller?

2008-12-18 Thread bingo
a simpler approach, might be to use RequestHandler and ParseException. read more about this approach here http://tinyurl.com/3m9azy regards On Dec 18, 6:12 pm, Penfold wrote: > This might do what your after > > http://debuggable.com/posts/passing-controller-variables-to-your-java... > > On 17

Inflector::singularize converts "Is" to "I"

2008-12-18 Thread bingo
hi bakers, I just stumbled across a weird problem and not sure whether its a bug in my code or Core library. I am using Inflector::Singularize to convert tags into singular form. However, during my test, I found singularize function converts "Is" to "I", which seems wrong. simply try this debug

Re: data validation for optional fields

2008-12-16 Thread bingo
hi Markus, data validation automatically ignores a field if is empty and the validation criteria is set required to false. Just use your form to check it working On Dec 16, 10:15 am, Markus wrote: > Hi Grigri, > > I'll do some testing on your code, thank you. :) > > On Dec 16, 4:07 pm, grigri

Re: data validation for optional fields

2008-12-15 Thread bingo
hi Markus, Within your secondary email validation criteria, set required:false $this->validate = array( 'primary_email' => 'email', 'secondary_email' => array( 'rule' => 'email', 'required' => false, 'message' => 'Please provide valid email address'

Re: isHashed Custom Validation

2008-11-20 Thread bingo
n false; return false; } } ?> On Nov 20, 1:49 pm, teknoid <[EMAIL PROTECTED]> wrote: > 1. app model is fine... or make it a behavior. > > On Nov 20, 12:24 pm, bingo <[EMAIL PROTECTED]> wrote: > > > Hi bakers, > > > I am trying to write a custom

isHashed Custom Validation

2008-11-20 Thread bingo
Hi bakers, I am trying to write a custom validation function that checks if a string is already hashed or not. I want to make sure that password filed are hashed and if not then hash them. Further, I can see it being useful in many other cases. Pertaining to custom validation, I have two question

Show errormessages

2008-08-25 Thread Jim-Bingo
How do I show the errormessages that I specified in the model? like this: 'message' => 'An errormessage' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-ph

Re: Source code cookbook?

2008-07-21 Thread bingo
is bakery code available ? On Jul 21, 5:27 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Is the source code from the cookbook available somewhere... or some > other example application where i18n is used with database data? > > Like looking at the bakery code helped me allot to figure out how > certain

Re: View Caching with AuthComponent

2008-07-16 Thread bingo
Another solution is instead of caching view (data along with presentation), cache only data. Caching of data can be done in controller and to retrieve cache for a specific user, you can append user id in the cache file name. On Jul 14, 6:46 pm, the_woodsman <[EMAIL PROTECTED]> wrote: > I know tha

Re: need help with CakePHP + YUI

2008-07-15 Thread bingo
tion/animation-min.js', 'yui/layout/layout-beta-min.js' ) ); On Jul 15, 7:46 am, Rich <[EMAIL PROTECTED]> wrote: > Javascript files go into the js folder of webroot and Css files can go > in the css folder of webroot or just dro

Re: need help with CakePHP + YUI

2008-07-15 Thread bingo
in your layout file. You can > continue using jquery and yui grid. > > hope it helps. > > -Ketanhttp://www.propertyjungle.in > > On Jul 15, 7:47 am, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi all, > > > Till date, I have used jquery with Cake

Re: CAKE PHP on BLUEHOST servers

2008-07-14 Thread bingo
Try these two things: 1. deleted all the files in app/tmp folder. Don't delete the folder structure. 2. Make sure you have correctly set path APP_PATH and CORE_PATH global variable in app/webroot/index.php file if both doesn't work, try debugging by putting some echo and die commands to find how

need help with CakePHP + YUI

2008-07-14 Thread bingo
hi all, Till date, I have used jquery with CakePHP and it was simple integrating the two as JQuery contains a javascript file. Now I am planning to move from JQuery to YUI as YUI has both JS and CSS which makes developing front end easy. But, I am not sure how to integrate the two as the default

Re: Testing AppController functions

2008-06-27 Thread bingo
anyone ?? On Jun 27, 10:32 am, bingo <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a function in AppController and I would like to write a test > case for it. In the past, I had written some simple test cases for > models but never wrote one for a controller. Can someone h

Testing AppController functions

2008-06-27 Thread bingo
Hi all, I have a function in AppController and I would like to write a test case for it. In the past, I had written some simple test cases for models but never wrote one for a controller. Can someone help me with writing a test case function for app controller. The function (getParams) that I wa

Re: Captcha reload problem, works in ff not in IE

2008-06-15 Thread bingo
Its difficult to say what the problem is without having access to code or webpage. However, I have compiled a list of issues that can cause IE7 to break but not firefox. Here is a link to my blog that discuss all these issues http://ragrawal.wordpress.com/2007/10/25/top-5-reasons-why-ie7-is-compla

Re: Blank line at beginning of RSS feed

2008-06-12 Thread bingo
hi Dan, I stumbled across the same problem and wrote a script to find all the files which have blank lines after ?> Checkout my blog post http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-spaces-before-and-after-php-tags/ If you are using cygwin or linux, then checkout the secon

Re: Can I use AuthComponent without ACL and existing User Table

2008-04-24 Thread bingo
gt; > Tip: there's lot of info there:http://groups.google.com/group/cake-php/web/faq > > On 24 avr, 13:44, bingo <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I have been using OthAuth component for long for user authentication > > purpose. B

Can I use AuthComponent without ACL and existing User Table

2008-04-24 Thread bingo
Hi all, I have been using OthAuth component for long for user authentication purpose. But now I am planning to switch to using AuthComponent mainly because it is part of core CakePHP library. I wanted to know, 1. can I use my existing user table with AuthComponent 2. Do I need to use ACL comp

Re: need advice => try to develop alternative flex client

2008-04-18 Thread bingo
g/amf/ > Gwoo had pointed me to his new project which is based on this plug-in. > But I need some time to realize it since it's a big project and no > documents available.http://code.google.com/p/fake-as3/ > > I promised gwoo to make a tutorial about amf plug-in. But I'm sti

need advice => try to develop alternative flex client

2008-04-17 Thread bingo
hi all, I have an existing website (http://findnwrite.com/memento) running on CakePHP. Now, I am planning to develop a Flex client, but I don't want to disturb my existing website. I have gone through some of the tutorials on CakePHP + AMPHP + Flex, but not really understanding on how to get fle

Re: weird behaviour of query conditions

2008-04-15 Thread bingo
e 2nd example you posted generated a string with a comma and an > extra space. I'm not saying there isn't something wrong with Cake's > munging of the string. I'm saying that the second example is Not Good > because it's changed the string you're trying to use as

Re: weird behaviour of query conditions

2008-04-14 Thread bingo
On Apr 14, 3:08 pm, "b logica" <[EMAIL PROTECTED]> wrote: > It looks to me like the second example will fail also. Note the added comma. > > The proper way to deal with this should be to separate your conditions > into an array. > > > > On Mon, Apr 14, 200

weird behaviour of query conditions

2008-04-14 Thread bingo
hi I just discovered that this condition in a query wont work //Example 1 $condition['Model'][upper($field)] = "IF VALUE CONTAINS AND , THE QUERY WONT WORK"; $this->findAll($condition) //generates this --> select * from model where upper(field) = "IF VALUE CONTAINS" AND ", THE QUERY WONT WORK ".

Re: "Your database configuration file is not present."

2008-03-27 Thread bingo
Probably CakePHP is not able to access the databaes configuration.. Open app/webroot/index.php file and change appropriate settings such as root_path, root_app, etc as suggested in the file. Regards, On Mar 27, 4:23 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > I uploaded CakePHP to /public

Re: Run query in background while showing "Please wait"

2008-03-26 Thread bingo
you will need to use Ajax search on ajax + cakePHP On Mar 26, 6:04 pm, kdecapite <[EMAIL PROTECTED]> wrote: > I have a CakePHP CRM application with 30,000+ contact records. Each > Contact hasMany Address records. One feature of my app is to allow my > client to search for duplicate entries

Re: How to develop an API

2008-03-05 Thread bingo
. If you can list in short steps to take for enabling an API that will be great Regards On Mar 6, 12:47 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Thu, Mar 6, 2008 at 11:09 AM, bingo <[EMAIL PROTECTED]> wrote: > > >                 if (Configure::

Re: How to develop an API

2008-03-05 Thread bingo
hi all, I am also looking on providing an API for my application. It seems, CakePHP does has some support for REST, SOAP. Just doing simple search on cake library, I found that this code in router.php file if (Configure::read('Routing.webservices') == 'on') {

$this->create() //confusion

2008-03-05 Thread bingo
hi all, Can someone explain me when to use create() function. I believe it make sense to use it when adding a record. But should it be used before saving a particular field. It seems if you use create function before saveField, CakePHP update all the fields with default values. Is this an expect

Re: Javascript function in a rendered ajax view

2008-02-25 Thread bingo
also make sure that javascript tag is not the first line of your ajax view. use a dummy div something like   as the first line of your code and after that place the javascript tag On Feb 25, 6:58 pm, rtconner <[EMAIL PROTECTED]> wrote: > you using this syntax.. ? > > myfunction = function(pa

CakePHP 1.2 + othAuth + last_visit -- hack

2008-02-23 Thread bingo
mething else..and if not ..why just saveField is not working..Also on doing some test, I found the problem is only with othAuth component. If I use the same command from model, everything works perfectly.. let me know if you think, I might have misse

Re: php $_GET routing

2008-02-21 Thread bingo
you might want to read this post http://ragrawal.wordpress.com/2007/11/29/making-cakephp-controller-independent-of-how-parameters-are-sent/ I have discussed how your controller can be made independent of how parameters are sent Regards, bingo On Feb 21, 8:17 am, Walker Hamilton <[EM

Re: How does Cakephp call header and footer and change colors, fonts?

2008-02-17 Thread bingo
hi sixs, you can do the same thing with CakePHP. Create elements to represent your hearder and footer. And call them from your layout. You can have script in layout which decides which header or footer elements need to be rendered On Feb 17, 3:04 pm, "sixs" <[EMAIL PROTECTED]> wrote: > Thanks f

Re: using jquery and json on cakephp

2008-02-16 Thread bingo
Here are the things that I did to get my jquery, json, and ajax working 1. I included this line in app/config/routes.php Router::parseExtensions('rss', 'json', 'xml'); //notice json over there 2. Then, I created a folder named "json" in my views/post..so my views folder structure lo

Note: think about character encoding

2008-02-14 Thread bingo
by blog post. There are some specific helpful tips related to CakePHP http://ragrawal.wordpress.com/2008/02/15/dummys-guide-for-settingconverting-character-set-for-a-web-application/ Regards, bingo --~--~-~--~~~---~--~~ You received this message because you are

Re: can someone please explain to me what {n} is?

2008-02-13 Thread bingo
) //Using Set Class of CakePHP to extract title Set::extract($data, "{n}.Post.title"); So, as you can see {n} is just a place holder for index number (0,1,) Regards, bingo On Feb 13, 7:55 pm, quoc <[EMAIL PROTECTED]> wrote: > In the cake manual this is an example of the

Re: Eclipse + PHP Cake

2008-02-12 Thread bingo
://ragrawal.wordpress.com/2007/07/14/eclipse-best-editor-for-php/ bingo On Feb 11, 12:19 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote: > Hiho! > > Eclipse PDT has many configurations options. > You can do anything what you wanna. Take a look at PHP > Editor (inside of > Window >

Re: Multiple Controllers Single View

2007-12-21 Thread bingo
gt; populated. > $this->set('foo_or_bar', $from_foo ? 'Foo' : 'Bar'); // so the view > will know what path to search for data inside nodes: $nodes[$i] > [$foo_or_bar']['id'] and so on. > > } > } // end class > > That way you alw

Multiple Controllers Single View

2007-12-21 Thread bingo
hi, I have a single RSS feed generator that can data from multiple controller and generate the RSS. Currently I have it as an element and for each controller class, I have a view that call this element to generate the RSS feed. For instance. I was wondering is there any way in cakePHP 1.2, that

Re: Frustration with simple Ajax request

2007-12-15 Thread bingo
3. $data is whatever data you set in your controller. In your case it will be $this->set('data', array('success'=> true, 'data'=> array('recordid'=>1, 'first'=>Jack,...) Regards, bingo On Dec 15, 7:31 am, majna <[EMAIL PRO

CakePHP 1.2 primary key suggestions

2007-12-14 Thread bingo
es without primary key. Regards, bingo --~--~-~--~~~---~--~~ 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

Re: download file

2007-12-14 Thread bingo
to something more specific. > > If after that nothing has been found, at the very least he would have a good > subject for a question. > > On Dec 14, 2007 8:37 AM, bingo <[EMAIL PROTECTED]> wrote: > > > > > > > hi all, > > > I don't see this as

Re: download file

2007-12-14 Thread bingo
hi all, I don't see this as hilarious. If someone is asking for information, provide it if you can rather than trying to make fun of something or someone. Regards, bingo On Dec 14, 8:54 am, Baz <[EMAIL PROTECTED]> wrote: > This is hilarious! > > "Download file&quo

Re: Need Suggestion on Accented Character

2007-12-12 Thread bingo
hi so you mean to say Database..but how do I convert everything in UTF-8 format..I mean when someone paste something in textarea of my webform, I will need to take that and convert into UTF-8 ...but how do I know in what format it is. Regards, bingo On Dec 12, 8:04 am, AD7six <[EMAIL PROTEC

Re: Design in cakephp

2007-12-12 Thread bingo
one solution might be to create multiple layouts and in your controller set the layout. So in your lunacom controller function use $this->layout = "whatever_layout_you_need"; I hope this helps bingo On Dec 12, 7:12 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> w

Need Suggestion on Accented Character

2007-12-12 Thread bingo
cented characters in MySQL/CakePHP system. Currently, my database is set up with latin-1 characterset. bingo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Generate List of Full Names

2007-12-11 Thread bingo
e($val); } } return $results; } hope this helps bingo On Dec 11, 3:28 am, "Tomas Rimšelis" <[EMAIL PROTECTED]> wrote: > try this: > > $this->Author->generateList(null, null, null, null, > "{n}.Author.last_name {n}.Author.first_n

Re: othAuth component + CakePHP 1.2.0.5875 prebeta = broken ==> saveField not working

2007-12-10 Thread bingo
hi daphonz, luke, I did check Red Frogs blog and made the suggested changes, but still the problem exist. :( I will again check othAuth component to make sure I didn't miss any changes suggested in Red Frogs blog Regards, bingo On Dec 10, 11:40 am, luke BAKING barker <[EMAIL PROTECTED

Re: Hi

2007-12-08 Thread bingo
.also look at some of the pages attached with this group. bingo On Dec 8, 2:26 pm, maxi <[EMAIL PROTECTED]> wrote: > How I can show "post" on presentation page from table posts? > If I add post on admin page..Post use Post model, and I need show post > in /Page/displa

othAuth component + CakePHP 1.2.0.5875 prebeta = broken ==> saveField not working

2007-12-08 Thread bingo
hi, I did some debugging..and it seems the above problem is only with OthAuth component. I searched through all the possible sources..but couldn't find any reason why its not working. Any help will be appreciated. Regards, Ritesh --~--~-~--~~~---~--~~ You received

SaveField ignores the input field name :-(

2007-12-07 Thread bingo
hi, yesterday I download the latest version of CakePHP (1.2.0.5875 pre- beta) and since then my code is broken. The problem is with the SaveField. I am using othAuth authentication and has this piece of code to update last_visit field if(isset($this->user_table_last_visit)){ $UserModel-

Re: Code critique? Anyone spare 5 mins to look over something?

2007-12-03 Thread bingo
hi, its seems fine, but you might be able to save lot of lines by using the http://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel-on-model-side extension Regards, Ritesh On Dec 3, 10:36 am, designvoid <[EMAIL PROTECTED]> wrote: > Hi all! > > I'm in the process of building my fi

Re: cake + php5 = bad performance?

2007-11-29 Thread bingo
hi powtac, what do you mean by hard object oriented code ?? On Nov 29, 10:25 am, powtac <[EMAIL PROTECTED]> wrote: > We did some benchmarks (not with cake) and figured out, that hard > objectorientated code in PHP5 is slower than PHP4! --~--~-~--~~~---~--~~ You re

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread bingo
o see what's going on. Regards, On Nov 23, 3:15 pm, designvoid <[EMAIL PROTECTED]> wrote: > Hi Bingo, > > Cheers for the heads up on that - I'll definately give it a shot! > > I'm still wondering tho, is it my code that is the problem or a > limitation of Cake?

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread bingo
. Regards On Nov 23, 1:49 pm, designvoid <[EMAIL PROTECTED]> wrote: > I'm not using that script, I'm relatively new to Cake, making good > progress but this has stumped me... > > Is that script needed to do what I want? Or is there a way in vanilla > Cake? > > t.

Re: Strange recursion problem (i think) - hopefully someone can shed some light (code inc.)

2007-11-23 Thread bingo
I guess you need to set (assuming you are using unbindModel script http://bakery.cakephp.org/articles/view/an-improvement-to-unbindmodel-on-model-side) $this->Product->Variations->expects('Options); $this->Product->expects('Variations); $this->set('products

Re: javascript declarations

2007-11-20 Thread bingo
hi idb I came across this problem many times..and the only reason IE7 fails to load javascript is when the

Re: jquery pagination

2007-11-19 Thread bingo
hi Solarise, I am using jquery with my CakePHP project. It works great..but the only problem is cakephp does not support jquery in a similar way as it does to Prototype. I don't have any helper but just write script tags in my views..and its working fine. And for pagination, I am not using cakep

Re: Hit logging in Cake

2007-11-18 Thread bingo
hi you might want to checkout this component. http://bakery.cakephp.org/articles/view/tracking-navigation-history-of-a-user It tracks what pages are loaded and save them in a session. But you can easily modify for your need regards On Nov 18, 7:58 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Ma

Re: banging my head for last two days to find the blank line in RSS output

2007-11-07 Thread bingo
hi Richard, oh Cool, I didn't knew that :-p. Regards, Ritesh On Nov 7, 5:26 am, RichardAtHome <[EMAIL PROTECTED]> wrote: > Another useful tip to cut down on these kind of errors in future is: > The closing php tag '?>' is optional so if you omit it you will never > have any unwanted trailing sp

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
or you can ready my blog :) http://ragrawal.wordpress.com/2007/11/07/script-for-removing-blank-spaces-before-and-after-php-tags/ On Nov 6, 10:09 pm, bingo <[EMAIL PROTECTED]> wrote: > hi AD7six, seacloud9, Jon, Mike, francky, > > Thanks to all. Finally I was able to get rid of al

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
this helps > > On Nov 7, 12:14 am, seacloud9 <[EMAIL PROTECTED]> wrote: > > > > > I don't know in eclipse my guess is it would be associated with your > > overall preferences listed under encoding (google that) but you most > > likely have space before an

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
this is literally the > cause of your frustrations. You should check every model, view, and > controller.. It does suck but it is what is causing your problem. > > On Nov 6, 1:54 pm, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi AD7six, > > > I tried putti

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
o 'Memento'; echo '[EMAIL PROTECTED]'; echo '[EMAIL PROTECTED]'; echo 'http://blogs.law.harvard.edu/tech/rss'; echo $content_for_layout; echo ''; ?> This is frustrating :-( isn't there any magic command that will automatically remove all

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi all, I tried what Jon suggested. But still getting space before my xml declaration :-( ...this is killing me...isn't there a good way to debug this problem. Searching on the forum, I have realized that many people struggle with this. Regards, Ritesh On Nov 6, 7:48 am, AD7six <[EMAIL PROTECTE

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
> php thinks > > is actually > > > Mike > > On Nov 6, 11:56 am, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi AD7six, > > > I used Chris Lamp's magic command (see below) to get rid of all new > > trailing blank lines > > >

Re: banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
'; echo $content_for_layout; echo ''; ?> However if I set debug to 2, I am getting this error message Parse error: parse error, unexpected T_STRING in D:\xampp\xampp\htdocs \memento\app\views\layouts\rss\default.ctp on line 1 I am still clueless. :-( Regards, Ritesh On No

banging my head for last two days to find the blank line in RSS output

2007-11-06 Thread bingo
hi, I am using cakePHP 1.2 and having trouble getting RSS working. My RSS output contains one blank line before the start of the first tag, breaking my RSS. I have checked all my modules, controllers, views, components, and helpers for blank space but didn't find anywhere. Did anyone experienced

Re: building url from parameter array

2007-11-03 Thread bingo
['controller'] = 'controller_name', ['action'] = 'action_name', ... ... ) Although, I can see why this might be done, but its inconsistent with the way $this->param returns the array Just a thought Regards, Ritesh On Nov 3, 6:17 am, AD7six <[

building url from parameter array

2007-11-02 Thread bingo
hi I am trying manipulate the url to provide different link options in the view. Although I can get all the parameters using Router::parser(Router::url("")), I am not sure how can I pass back the parameter array and get a valid url. Below is an example of what I am trying to do Assume that I hav

Re: Router::url not returning absolute url

2007-11-02 Thread bingo
x27;/', true) => "http://localhost/cake1.2/"; > > I admit this is surprising - I understand the "posts" being included > (as that was the action I was testing), but it still should have given > an absolute url. > > On Nov 2, 5:27 am, bingo <[EMAIL P

Router::url not returning absolute url

2007-11-01 Thread bingo
hi, I am trying to get absolute url location of a page. I tried using Router::url("", true) but that always returns me a relative url. On debugging, it seems although Router returns absolute url, somewhere its getting converted to relative url. I am calling Router class within my helper code. Hop

Re: preload a class that extends Object

2007-10-15 Thread bingo
trying to copy Set class of CakePHP. Given this, can you describe the tradeoff between putting in vendor vs as a CakePHP library Regards, Ritesh On Oct 15, 8:04 am, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > On 10/15/07, bingo <[EMAIL PROTECTED]> wrote: > > > >

preload a class that extends Object

2007-10-15 Thread bingo
Hi, I have some generic data processing that most of the models need. So I wrote a class that extends Object. However, I didn't understand to make available throughout my application. This is how my class is define Class ExtendedSetOperations extends Object{ public getCount($data, $path)

Re: retaining Session variables before and after log in

2007-10-05 Thread bingo
, Ritesh On Oct 5, 1:32 am, Grant Cox <[EMAIL PROTECTED]> wrote: > Why is a new session created when they log in? > > On Oct 5, 12:57 pm, bingo <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I am trying to create something like amazon, where user can browse

retaining Session variables before and after log in

2007-10-04 Thread bingo
Hi, I am trying to create something like amazon, where user can browse items and put in cart and after that log in to checkout items. However, currently I am storing items in a session variable. The problem, once the user logs in, a new session is created and I lose all the information about the

Controller Test + testing file upload

2007-10-03 Thread bingo
Hi I have a simple controller method that uploads a file and updates the database table. I want to create a unit test for the this method but not able to find how to send data to the controller without using the form. Can anyone enlighten me?? Thanks Ritesh --~--~-~--~~

Re: how to force download

2007-10-02 Thread bingo
;re using 1.2 > > On Oct 2, 1:46 pm, bingo <[EMAIL PROTECTED]> wrote: > > > hi Grant, > > > Is your code in controller ?. If I put the code in the controller then > > my download works. But lot of my controller require download ability, > > so I am tryin

Re: about cakephp 1.2 development

2007-10-02 Thread bingo
hi Adwin, I have been using cakephp 1.2 on my production server and didn't face any problem. Although, I should mention that I don't use some of the important features of CakePHP 1.2 such as ACL and Pagination. The reason only being I upgraded from cakephp 1.1 and I was using some plugins to hand

Re: how to force download

2007-10-02 Thread bingo
\""); > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); > header("Pragma: public"); > > echo $excel_file_data;} > > @flush(); > @ob_end_flush(); > exit(); > &g

how to force download

2007-10-02 Thread bingo
hi, In my view, there is an option to download data in a xml format. The user clicks on the submits a form and a controller method is executed. The controller calls a file utility (in the vendor folder) that sets the header and sets the file content for download and at the script calls die(); Alt

Re: How to pass a variable from Controller to Layout?

2007-09-28 Thread bingo
hi Raymond, have you thought about using elements. In your views, you can call elements and elements can either request controller or use cache to get specific details Ritesh On Sep 28, 10:03 pm, Raymond <[EMAIL PROTECTED]> wrote: > Let's say we have a layout as /app/views/layout/mylayout.thtml

Re: Cake Pages w/Multiple Actions, Multiple Models

2007-09-15 Thread bingo
another option that I feel gives more flexibility is this http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction so you end up writing lot of small elements and use views to compose these elements. However you will need to also consider how requestAction is affecti

Re: CakePHP support for Berkeley DB?

2007-08-21 Thread bingo
ing list now. Fix your > > mail client or whatever. > > > On Aug 20, 11:12 am, "Olexandr Melnyk" <[EMAIL PROTECTED]> wrote: > > > In case you use it MySQL storage engine. > > > > 2007/8/20, bingo <[EMAIL PROTECTED]>: > > > > > h

CakePHP support for Berkeley DB?

2007-08-20 Thread bingo
hi, this is just an open question. Recently I have been reading a lot of Berkeley DB and came to know that many big companies such as google and amazon use Berkeley DB. I am wondering does CakePHP support the use of Berkeley DB ? Regards, bingo

View this page "Listed Websites on Custom Google Search Engine for CakePHP"

2007-08-06 Thread bingo
Click on http://groups.google.com/group/cake-php/web/listed-websites-on-custom-google-search-engine-for-cakephp - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed

bug either in expects function or recursive -- not sure where

2007-07-13 Thread bingo
hi bakers, I think I found a bug in model.php. I have table structure as follows blogs -- HABTM -- authors I am trying to build a tree starting from a blog. The tree should look like this Blog (Starting point) |--Author |-- Blog |--Author |--Aut

difference between $this->data and $this->set('data')

2007-06-30 Thread bingo
But to set the form, we need to use $this->data bingo. --~--~-~--~~~---~--~~ 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

Re: @unlink fails to clear the cache

2007-06-26 Thread bingo
hi problem solved..I download the nightly built of cakephp and the problem was solved. Not sure what was wrong... thanks for all your suggestions Regards, Ritesh On Jun 25, 12:46 pm, bingo <[EMAIL PROTECTED]> wrote: > hi Chris, > > yes I did that with debug level 2. ClearCac

Re: @unlink fails to clear the cache

2007-06-25 Thread bingo
rather than physically deleting the file. But I am not sure about this. Regards, Ritesh On Jun 25, 12:29 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 6/25/07, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi > > > I tried both > > unlink and

Re: @unlink fails to clear the cache

2007-06-25 Thread bingo
hi I tried both unlink and clearCache but none of the them worked. View.php always returns the cached element. Regards, Ritesh On Jun 25, 8:51 am, "Jonathan Langevin" <[EMAIL PROTECTED]> wrote: > get rid of the @ in front of unlink, see if any errors are thrown. > >

@unlink fails to clear the cache

2007-06-25 Thread bingo
Hi, I am caching element and if update is made to the database record, I clear the cache for that element. However, it seems the cache never gets cleared as my view do not show updated content. I am using @unlink to clear the cache and here is how things are setup in my controller if($this->{$th

Re: need suggestion on changing url

2007-06-12 Thread bingo
hi all. I did some search and found this article ..its says what AD was suggesting http://www.thinkingphp.org/2006/09/18/dessert-11-welcome-back-friendly-urls/ Regards, bingo http://findnwrite.com On Jun 12, 6:07 am, bingo <[EMAIL PROTECTED]> wrote: > hi everyone, > > thanks fo

Re: need suggestion on changing url

2007-06-12 Thread bingo
s for spotting mistake on details page. Regards, Ritesh On Jun 12, 4:24 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jun 12, 8:07 am, bingo <[EMAIL PROTECTED]> wrote: > > > hi AD, > > > I thought of doing so, but somehow I am not feeling comfortable with > > f

Re: need suggestion on changing url

2007-06-11 Thread bingo
title and both have right spelling. Thanks for your suggestion. I hope you can clear my doubts. Regards, bingo http://findnwrite.com On Jun 11, 10:21 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jun 12, 5:54 am, bingo <[EMAIL PROTECTED]> wrote: > > > hi, > > > I have

need suggestion on changing url

2007-06-11 Thread bingo
tions. Regards, bingo http://findnwrite.com --~--~-~--~~~---~--~~ 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

Re: Panels (ie like in ASP.net)?

2007-06-10 Thread bingo
placed within the panels. I hope I correctly understood your problem Regards, bingo On Jun 9, 7:42 pm, gary <[EMAIL PROTECTED]> wrote: > Hi, > I was wondering if there is a way to make use of a panel type of idea > using cake php? is there anything predefined that accomodates for suc

Re: othauth permissions

2007-06-10 Thread bingo
hi, why can you can do it in the same as you do with other tables in CakePHP. Create model, controller and view for it and set admin permission in the groups_permission table. Hopefully, you won't delete admin group.. Regards, bingo On Jun 10, 3:35 am, Oneill <[EMAIL PROTECTED]> wro

  1   2   3   >