Re: How to use several languages in cakePHP?

2008-05-22 Thread Sliv (Tim MacAleese)
http://book.cakephp.org/view/161/localization-internationalizat On May 22, 2:42 am, Margarittka [EMAIL PROTECTED] wrote: Hello! I need to write site with support of 3 languages. Differences of parts are only in files with constants. How can i realize this in optimum way?

Including images within plugins?

2008-05-22 Thread Matt Huggins
Is it possible to provide images (and other files, such as CSS stylesheets) with a plugin, such that they are accessible via a URL in HTML (such as an IMG tag)? I'm working on a forum plugin, and I'd like it to be as easy to distribute as possible. Since I use some forum-specific images and

Re: Including images within plugins?

2008-05-22 Thread Dr. Tarique Sani
On Thu, May 22, 2008 at 12:41 PM, Matt Huggins [EMAIL PROTECTED] wrote: Is it possible to provide images (and other files, such as CSS stylesheets) with a plugin, such that they are accessible via a URL in HTML (such as an IMG tag)? I'm working on a forum plugin, and I'd like it to be as

Component and models

2008-05-22 Thread laeffe
Hi, I know this has been discussed before, but I just want it to be clarified. From within a component I like to access a Model, what would be the correct approach? App::import(Model, Modelname); $modelname = new Modelname(); maybe? --~--~-~--~~~---~--~~ You

Re: Saving NOW() in model

2008-05-22 Thread djiize
I use the same way as Stephen Because what if MySQL is hosted on another server than Apache/PHP ? You'll save Apache/PHP time which can be different of MySQL time (no the same meridian for instance). Of course, it's a very specific case. And my servers are time synchronised together, but some

Re: Extra newline at beginning of files?

2008-05-22 Thread Adam Royle
Check all of your models, controllers, components, helpers, behaviours, bootstrap, config for whitespace outside of the ?php ? tags. It could be at the start or end of any of those files. Make sure you don't have echo \n; jotted down somewhere. (jokes) Adam On May 22, 6:59 am, Siebren Bakker

Appending data in Session

2008-05-22 Thread Reza Muhammad
Hello, I'm trying to save multiple data in a session (kind of like a shopping cart). The process is a user select an item using a checkbox, and then he/she submits the form. The function will write a session (called product_id). However, if I try to search for another item, and then I

Re: Appending data in Session

2008-05-22 Thread Amit Badkas
On Thu, May 22, 2008 at 3:16 PM, Reza Muhammad [EMAIL PROTECTED] wrote: Hello, I'm trying to save multiple data in a session (kind of like a shopping cart). The process is a user select an item using a checkbox, and then he/she submits the form. The function will write a session (called

Re: What is the best way to interact with MS Access db?

2008-05-22 Thread leo
I meant move the Access backend to MySql and use the existing Access applications to connect via ODBC. Pretty much what you're saying. We have tested that now, and it looks like the way to go - provided the client can wear a slight performance hit on the office systems (resulting from connecting

SSL requestSecure gives blank page

2008-05-22 Thread michaelmcandrew (aka Milky Joe)
Hi there, anyone know what I am doing wrong? I have SSL set up on my server, and without using the Security component, everything works fine. I can see both these URLs: http://www.carbonretirement.com/baskets/directPayment https://www.carbonretirement.com/baskets/directPayment (You won't be

Re: Can any body help me please for tiny MCE editor issue

2008-05-22 Thread djiize
how do you load tiny_mce.js file? do you use JavascriptHelper like that? echo $javascript-link('tiny_mce'); I saw several questions from you these days, and many can be answered by the use of core helpers You should know that CakePHP manipulates URL (to make them pretty), and that change the way

Re: Saving NOW() in model

2008-05-22 Thread Joel Perras
It doesn't really matter whether or not you obtain the date from Apache/PHP or MySQL; as long as you are consistent. On May 22, 4:01 am, djiize [EMAIL PROTECTED] wrote: I use the same way as Stephen Because what if MySQL is hosted on another server than Apache/PHP ? You'll save Apache/PHP

Re: HTML Helper webroot not correct

2008-05-22 Thread Dardo Sordi Bogado
It's documented since a long time ago: CakePHP 1.2: http://book.cakephp.org/view/32/installation CakePHP 1.1: http://manual.cakephp.org/view/308/installing-cakephp On Wed, May 21, 2008 at 10:34 AM, Joel Perras [EMAIL PROTECTED] wrote: Add the line: RewriteBase /~user/ to the .htaccess

Re: Saving NOW() in model

2008-05-22 Thread djiize
yes you're right! I care about that because we have 1 MySQL central server and several servers that request it. And we have not always full control of theses servers (apps can be coded by others teams/companies). On 22 mai, 14:16, Joel Perras [EMAIL PROTECTED] wrote: It doesn't really matter

CakePHP and Microsoft Access: Automatically create an MS Access Relationship Diagram from a CakePHP Schema

2008-05-22 Thread RichardAtHome
I've just posted a Microsoft Access function on our corporate blog that automatically builds the relationship diagram for linked (ODBC) CakePHP tables. I'm posting a link here in case anyone finds it useful... http://blog.futurate.com/2008/05/cakephp-and-access-sitting-in-tree.html (If linking

Warnings notices with file cache - frames website

2008-05-22 Thread leo
I get the following messages when using the File caching engine: Warning (2): unlink(F:\htdocs\furv08\app\tmp\cache\persistent \cake_core_object_map) [function.unlink]: No such file or directory [CORE\cake\libs\file.php, line 276] Warning (2): fopen(F:\htdocs\furv08\app\tmp\cache\persistent

Re: Can any body help me please for tiny MCE editor issue

2008-05-22 Thread leo
I found that in some cases, when using TinyMCE, Cake actually writes a fieldtype other than a textarea. I got around the problem by writing the html myself. Or you can try forcing Cake's hand by saying 'type'='textarea'. Also check what the browser says the page sourcecode is and check the js

Re: Component and models

2008-05-22 Thread b logica
While you wait for a more authoritive reply, I'll chip in to say that that's what I've done where I needed to. But I think it depends on the model's association with the controller that loads the component. On Thu, May 22, 2008 at 3:55 AM, laeffe [EMAIL PROTECTED] wrote: Hi, I know this has

Re: How to use several languages in cakePHP?

2008-05-22 Thread leo
try this - it helped me. a href=http://www.google.es/url?sa=tct=rescd=5url=http%3A%2F %2Fbakery.cakephp.org%2Farticles%2Fview%2Fp28n-the-top-to-bottom- persistent-internationalization- tutorialei=vHg1SL3zPIeA7gX9l_m3DQusg=AFQjCNHEqzUMKdMgmzqt- KVDJ7Rxy2iDfAsig2=pWvuTbQ60TcbeGPsgMwpYg p28n, the

Re: Can any body help me please for tiny MCE editor issue

2008-05-22 Thread leo
try this - it helped me. A lot. http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial On 22 Maig, 13:52, vishal [EMAIL PROTECTED] wrote: Hi Friend, I am facing a very difficult problem, if you have any suggestion for me then plz

Re: How to use several languages in cakePHP?

2008-05-22 Thread leo
Try this it helped me. a lot. http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial Leo (Apologies if I have made multiple posts here. Usenet is not the most modern technology.) On 22 Maig, 08:42, Margarittka [EMAIL PROTECTED] wrote: Hello! I

Re: Why CakePHP always uses var?

2008-05-22 Thread Mathew Nik Foscarini
Thanks for the tip! :) - Original Message From: keymaster [EMAIL PROTECTED] To: CakePHP cake-php@googlegroups.com Sent: Thursday, May 22, 2008 10:01:19 AM Subject: Re: Why CakePHP always uses var? For symptomatic relief in Zend Studio: - right click in the debug messages window, -

Html Helper link onclick option question

2008-05-22 Thread jimbo
Hi, can anybody help me with this problem, I am creating a simple link in one of my views and I am having a problem giving an onClick option/ attribute for the link, as it seems cake is escaping/encoding the javascript function special characters like this: echo $html-link(foo, '#',

phpcake Error handlling when debug = 0

2008-05-22 Thread mahaguru
I wana have my custom error handller for cake application. In that I need to have mail notification and showing the user page with some message. I have done it but the problem is that if debug=0 it wont work as I think it wont call the debug call of cakephp which calls our custom error handller.

session garbage when savehandler = cake

2008-05-22 Thread [EMAIL PROTECTED]
Hello, when will old session data be deleted when I use cake as sessionhandler (Configure::write('Session.save', 'cake');) ? I set that config in the core.php yesterday and I looked today in the CakePHP's /tmp directory and there are a lot of files from yesterday. Thanks Oliver

Difference cake bake controller User scaffold or without scaffold, need explanation

2008-05-22 Thread yodi aditya
I'm newbie. I'm using cake bake console . Then the problem is when using command *cake bake controller Types* then the output : ?php class TypesController extends AppController { var $name = 'Types'; var $scaffold; } ? but if using command *cake bake controller Types scaffold* then the

Routing - Many Slashes - One Parm

2008-05-22 Thread ar2oor
i got: $Route-connect('/thumb/:link', array('controller' = 'obrazki', 'action' = 'skaluj'), array('link' = '(.)*')); www.asd.com/thumb/imgs/asd/dsa/dsa.jpg and i want to link=imgs/asd/dsa/dsa.jpg but i doesn't work :/ any ideas ? --~--~-~--~~~---~--~~ You

session garbage savehandler = cake

2008-05-22 Thread [EMAIL PROTECTED]
Hello, when will old session data be deleted when I use cake as sessionhandler (Configure::write('Session.save', 'cake');) ? I set that config in the core.php yesterday and I looked today in the CakePHP's /tmp directory and there are a lot of files from yesterday. Thanks Oliver

167+ MB memory size fatal error in .../cake/libs/model/datasources/

2008-05-22 Thread BioResearch
We are trying to update a working application from cake1.1 to cake_1.2.0.6311-beta. After fixing all of the bugs we ran into a memory error which can not be fixed via increasing the memory size in PHP.ini: Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 136

Re: 167+ MB memory size fatal error in .../cake/libs/model/datasources/

2008-05-22 Thread fr3nch13
Check your model associations. I've ran into this when my associations were returning a huge array. If it's a page where you are listing items and your not using their associations, temporarily remove those associations for that instance of grabbing the list. I think the function is something

Re: Static Page

2008-05-22 Thread b logica
I suspect that Phaedo--like myself--has a flash() method in AppController that runs the redirect. Note the second param given. I see a few things not quite right with the example. Are you certain that the databas is being updated? There's no version given but, if using 1.2: $this-Sorrow-id =

Re: session garbage savehandler = cake

2008-05-22 Thread fr3nch13
By default cakephp uses php to manage sessions so check out the session settings in php.ini check this out http://www.mail-archive.com/cake-php@googlegroups.com/msg17723.html On May 22, 7:54 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, when will old session data be deleted when I

Re: Routing - Many Slashes - One Parm

2008-05-22 Thread fr3nch13
try $Route-connect('/thumb/:link', array('controller' = 'obrazki', 'action' = 'skaluj')); then in your skaluj action in your controller, take a look at debug($this-params); It should have the info you need and you should be able to do a join(), etc. On May 22, 9:26 am, ar2oor [EMAIL PROTECTED]

Re: Appending data in Session

2008-05-22 Thread b logica
Additionally, if it were my app, I'd save the product name also so that a list for the current cart can be easily displayed at any time. So, instead of pushing an ID onto the array I'd first grab all of the products from session, add a new array with both ID name of latest product, then both

Re: Why CakePHP always uses var?

2008-05-22 Thread keymaster
For symptomatic relief in Zend Studio: - right click in the debug messages window, - choose: Debug Message Filters - unselect: Strict Messages. On May 22, 8:19 am, José Lorenzo [EMAIL PROTECTED] wrote: It's a real pain, because Zend Studio reports all the usages of var is a compile

Re: Static Page

2008-05-22 Thread Joel Perras
Wow, I should really start taking the time to actually read the snippets posted. On the other hand, if people stop imagining that others can read their minds and start formulating questions that actually address their problem at hand, then they'd probably get more precise answers. -J. On May

Re: Including images within plugins?

2008-05-22 Thread b logica
If your forum images are displayed using only your CSS (ie. background-image) then you're good to go. Just put store them within an images dir inside the CSS dir and set all the URLs without any leading slash and they'll be fetched from there. In fact, you'd be half way toward making the forum

Re: Saving NOW() in model

2008-05-22 Thread Zifnab
Ok, well for consistency's sake, do you know if cakePHP's automatic filling of 'created', 'updated', and 'modified' fields uses PHP's time or MYSQL's time? Thanks for all the quick responses everyone :) On May 22, 7:11 am, djiize [EMAIL PROTECTED] wrote: yes you're right! I care about that

Re: 167+ MB memory size fatal error in .../cake/libs/model/datasources/

2008-05-22 Thread b logica
Or just set $this-YourModelName-recursive = [-1|0]; I'd say it's very likely to be your associations that are the problem and that Cake is attempting to basically slurp up your entire database n times. On Thu, May 22, 2008 at 10:14 AM, fr3nch13 [EMAIL PROTECTED] wrote: Check your model

Re: Html Helper link onclick option question

2008-05-22 Thread fr3nch13
You have to turn off the escaping in the link functions, it auto escapes. Check out: http://www.donutczar.com/blog/?p=4 http://api.cakephp.org/1.2/class_html_helper.html On May 22, 4:56 am, jimbo [EMAIL PROTECTED] wrote: Hi, can anybody help me with this problem, I am creating a simple link

Re: Saving NOW() in model

2008-05-22 Thread fr3nch13
Most likely uses php's time (didn't check), but a good reason for this is to allow supporting of multiple databases (or even flat files) instead of db specific functions. On May 22, 10:25 am, Zifnab [EMAIL PROTECTED] wrote: Ok, well for consistency's sake, do you know if cakePHP's automatic

Re: Appending data in Session

2008-05-22 Thread fr3nch13
to add onto b logics, you can use the id as the key in an associative array as the sessions use the period as it's delim: writing: $this-Session-write('product.'.$id, $name); reading $products = $this-Session-read('product); On May 22, 10:26 am, b logica [EMAIL PROTECTED] wrote:

Re: Appending data in Session

2008-05-22 Thread fr3nch13
forgot, this also eliminates the need to check to see if it's there first. On May 22, 10:38 am, fr3nch13 [EMAIL PROTECTED] wrote: to add onto b logics, you can use the id as the key in an associative array as the sessions use the period as it's delim: writing:

Re: Bake error

2008-05-22 Thread Sola
I also have the same problem with my cake project Fatal error: Cannot redeclare class overloadable in C:\xampp\htdocs \cake\libs\ov erloadable_php5.php on line 61 Any solution yet? On Apr 22, 6:13 pm, [EMAIL PROTECTED] wrote: I am getting the following error when I try to institutebakefrom a

Re: $this-Auth-user() cached? - Cake 1.2

2008-05-22 Thread theandystratton
I don't understand what you're trying to do here. Are you trying to refresh the $user variable or the data in the session? I'm trying to find an easy way to refresh the data held in $this-Auth- user() -- is that just pointing to the User value in the session? I'm not sure how the Auth object

Re: Bake error

2008-05-22 Thread Gwoo
What are the steps to reproduce the error? --~--~-~--~~~---~--~~ 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, send email to

Upgrading Cake

2008-05-22 Thread Rob Wilkerson
So as a new (prospective) user, I've been looking at the framework versions and tutorials and I started wondering what the upgrade path looked like. From what I can tell, the user code and framework code is intermingled (albeit in a very predictable way). Given that, how are upgrades performed?

Re: Upgrading Cake

2008-05-22 Thread Chris Hartjes
On Thu, May 22, 2008 at 11:56 AM, Rob Wilkerson [EMAIL PROTECTED] wrote: Would love to know if there's a baked in upgrade path or, if not, what strategy experienced users employ. Thanks. Rob Well, I keep my Cake core files out of the web path (no snooping, thanks!) and my app directories

Re: Upgrading Cake

2008-05-22 Thread AD7six
On May 22, 5:56 pm, Rob Wilkerson [EMAIL PROTECTED] wrote: So as a new (prospective) user, I've been looking at the framework versions and tutorials and I started wondering what the upgrade path looked like. From what I can tell, the user code and framework code is intermingled (albeit in

Using CakePHP to update a wordpress rss feed

2008-05-22 Thread Chez17
As a project to learn CakePHP, I have been recreating my wordpress blog. My issue now is that I want to keep the same rss feed that was set up by wordpress and have my new site update that. I have no idea how to get started on this, I was hoping for a push in the right direction. Thanks for your

Re: Appending data in Session

2008-05-22 Thread Reza Muhammad
Thanks. Amit's solution was what I was looking for. I do realize that by separating product id into different fields might be beneficial, but appending data into the same array looks more appealing to me. Anyway, this actually pretty easy to tackle, I just never thought of it like

Re: Using CakePHP to update a wordpress rss feed

2008-05-22 Thread jonknee
On May 22, 12:14 pm, Chez17 [EMAIL PROTECTED] wrote: As a project to learn CakePHP, I have been recreating my wordpress blog. My issue now is that I want to keep the same rss feed that was set up by wordpress and have my new site update that. I have no idea how to get started on this, I was

Re: Making Paginator first sort direction DESC

2008-05-22 Thread donnerbeil
It's not implemented yet. But you can do the following: copy the paginator helper to app/views/helpers. Then edit line 223: instead of $dir = 'asc'; write this: $dir = 'asc'; if(isset($options['direction'])){ $dir = $options['direction']; } Now in your view: $paginator-

Re: Using CakePHP to update a wordpress rss feed

2008-05-22 Thread Chez17
I am using they dynamically generated feed. Does that mean there is no way to get the new site to work with the old rss feed? Are you using the dynamically generated WordPress RSS feed or something like FeedBurner? If it's dynamically generated, you can't add to it, but you can easily create

Re: $this-Auth-user() cached? - Cake 1.2

2008-05-22 Thread b logica
On Thu, May 22, 2008 at 11:28 AM, theandystratton [EMAIL PROTECTED] wrote: I don't understand what you're trying to do here. Are you trying to refresh the $user variable or the data in the session? I'm trying to find an easy way to refresh the data held in $this-Auth- user() But you're

hasOne association

2008-05-22 Thread cooked
I am stumped with a problem when using model associations. For the some reason the findAll generates an incorrect join query. Will great appreciate any help. Both my models and controllers along with the MySql output is shown below. class Playerstat extends AppModel { var $name =

Re: 167+ MB memory size fatal error in .../cake/libs/model/datasources/

2008-05-22 Thread BioResearch
Re: If it's a page where you are listing items and your not using their associations, temporarily remove those associations for that instance of grabbing the list. It's the front page (index.php) that is crashing and not some association rich page. The front page has a login box, search box

ajax form validation

2008-05-22 Thread Oli
hey, can someone explain me howto validate a form using ajax? submission works fine but ive no clue how to validate the form correctly before saving the data oli --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Auth heisenbug

2008-05-22 Thread b logica
Suddenly, authentication for my app hasbecome completely unhinged. This was working perfectly yesterday but now I'm (almost) always redirected back to the login page. The only thing I've changed has to do with $loginRedirect, but I can't see how that would cause Auth to forget that I'm

Cross Database Joins with conditions in 1.2.0.6311

2008-05-22 Thread jmmg77
I have a model with many belongsTo associations which have simple conditions. Some of the models I'm associating with are in a different database than the default. When I do a findAll, any association I have that belongs to a model in another db and has conditions in the association shows up

Re: CakePHP and Subscription Based Billing

2008-05-22 Thread jonknee
On May 22, 12:28 pm, mydesignbuddy [EMAIL PROTECTED] wrote: PCI compliance is a must nowadays, its the law. Don't store or transmit your customers cc data unless you are compliant with PCI guidelines. The easiest recurring billing gateway service that I've used was Paypal's Payflow (pro or

Re: Using CakePHP to update a wordpress rss feed

2008-05-22 Thread jonknee
On May 22, 12:50 pm, Chez17 [EMAIL PROTECTED] wrote: I am using they dynamically generated feed. Does that mean there is no way to get the new site to work with the old rss feed? I'm not sure exactly what you mean about getting the new site to work with old feed. Are you going to continue

Re: ajax form validation

2008-05-22 Thread jonknee
On May 22, 1:34 pm, Oli [EMAIL PROTECTED] wrote: hey, can someone explain me howto validate a form using ajax? submission works fine but ive no clue how to validate the form correctly before saving the data Validation occurs just the same as a normal request. I don't use the AJAX helpers

Re: CakePHP and Subscription Based Billing

2008-05-22 Thread Jon Bennett
PCI compliance is a must nowadays, its the law. Don't store or transmit your customers cc data unless you are compliant with PCI guidelines. The easiest recurring billing gateway service that I've used was Paypal's Payflow (pro or link). I'm sure they're other opinions out there but I don't

Re: ajax form validation

2008-05-22 Thread francky06l
Ajax or not does not change anything (unless you want to do something special in the form). Usually you would put your form in a div (in the ajax call you should set this div' id's as parameter for update), when submitting and trying to save, if it fails just render the same form. This one (with

Re: Saving NOW() in model

2008-05-22 Thread francky06l
I use date(DATE_ATOM) for date / timestamp fields, one could argue that there might be different time-zone between the web-server and the db server :-) If you really need the DB timestamp, better using '!- NOW()' as Stephen mentionned. On May 22, 4:35 pm, fr3nch13 [EMAIL PROTECTED] wrote: Most

Re: CakePHP and Subscription Based Billing

2008-05-22 Thread jarmstrong
jonknee wrote: I just wrote PayFlow classes in PHP and Python. Amazingly they only had built-in support for .NET and Java, everything else goes over HTTPS and they provide no code to get started. Not a tough thing to write, but it seemed pretty odd considering all the tools Authorize.net

Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
I am trying to figure out the most reliable way of restricting login attempts while using the Auth Component. Here is my best stab at the problem thus far: http://cakeforge.org/snippet/detail.php?type=snippetid=220 I'd love to hear what other people have done, or what they think of the method

Re: Auth heisenbug

2008-05-22 Thread Joel Perras
Try debugging env('HTTP_REFERER') in addition to what Controller::referer($alt_redirect, true) gives you; your headers might be getting mangled for some reason or other. Also, is there a specific reason you are statically accessing the Controller::referer() method instead of using $this-referer()

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread Mathew Nik Foscarini
Assuming that your blocking their IP, because you think a hacking attempt is taking place. Usually, hacking attempts are performed by robots, and it wouldn't be hard to have the robot retry every 5 minutes. I think storing the IP address in the session isn't useful. If they fail to login

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread davidpersson
There's a brute force protection behavior available over at the bakery: http://bakery.cakephp.org/articles/view/brute-force-protection It may need some changes to make it work with 1.2 but I think it's simple and does it's job. On May 22, 9:13 pm, aranworld [EMAIL PROTECTED] wrote: I am trying

Re: hasOne association

2008-05-22 Thread Joel Perras
In your Player model: class Player extends AppModel { var $name = 'Player'; var $primaryKey = 'player_id';// -- Without this, Cake assumes that the primary key of your model is named 'id'. var $hasOne = array('Playerstat' = array( 'className' ='Playerstat',

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread aranworld
Thanks for the feedback. I will add some database functionality to it as well. One problem I am coming across is that many of my users are all in the same office with identical IP addresses. So if one user makes 5 unsuccessful attempts, I run the risk of locking out everyone else in the

Re: Using CakePHP to update a wordpress rss feed

2008-05-22 Thread Chez17
Thats what I'm getting at. I want to make sure when I switch my site over from wordpress to CakePHP, I want all the readers who subscribe to my current wordpress rss feed to be automatically subscribed to the new CakePHP generated rss feed. I was wondering how I would do that. When you say

Re: Using CakePHP to update a wordpress rss feed

2008-05-22 Thread jonknee
On May 22, 4:29 pm, Chez17 [EMAIL PROTECTED] wrote: Thats what I'm getting at. I want to make sure when I switch my site over from wordpress to CakePHP, I want all the readers who subscribe to my current wordpress rss feed to be automatically subscribed to the new CakePHP generated rss feed.

Re: $this-Auth-user() cached? - Cake 1.2

2008-05-22 Thread Stephen Orr
Basically, it looks like the Auth data is not refreshed on each page load. I can understand why you wouldn't want to do this - performance notwithstanding - but I've run into a few issues with it myself (primarily dealing with having an online store where the customer could change their email

Re: Auth heisenbug

2008-05-22 Thread b logica
On Thu, May 22, 2008 at 3:21 PM, Joel Perras [EMAIL PROTECTED] wrote: Try debugging env('HTTP_REFERER') in addition to what Controller::referer($alt_redirect, true) gives you; your headers might be getting mangled for some reason or other. I just can't imagine how that would affect things

Re: Static Page

2008-05-22 Thread phaedo5
Yeah. I hate when newbs have trouble asking questions. It's like they are new to this or something. Thanks for your help b logica. I appreciate it. On May 22, 9:27 am, Joel Perras [EMAIL PROTECTED] wrote: Wow, I should really start taking the time to actually read the snippets posted. On

Re: Restricting Login Attempts with Auth Component

2008-05-22 Thread BrendonKoz
If you're worried about using just the IP, why not store a browser fingerprint in the database and use that as the mechanism for identifying an identical user? A simple browser fingerprint would be the IP and UserAgent string concatenated toghether, and then hashed (MD5 for instance). Although

Auth + AclBehavior and saving an ARO/ACO `alias`

2008-05-22 Thread BrendonKoz
As I've only been using CakePHP for about a week now, I certainly did jump head first in to what seems like one of the harder areas to understand: ACL in version 1.2. From what I can tell, I am beginning to understand how it works, and slowly getting accustomed to the CakePHP way. According to

Re: I can not solve Session - losing value after redirect problem after I read all previous posts.

2008-05-22 Thread Ozzy OG Kush
I'm having the same problem!!! It simply won't save sessions for me. On Apr 14, 1:49 pm, columbus [EMAIL PROTECTED] wrote: Hi, I am a beginner in both php andcakePHP. I have met the same problem as many previous posts. However, I have tried most of the solutions and it is still not working.

Re: Auth + AclBehavior and saving an ARO/ACO `alias`

2008-05-22 Thread David C. Zentgraf
On 23 May 2008, at 09:51, BrendonKoz wrote: Also...why does the AclBehavior not offer a way to specify the alias upon save if the alias is necessary for most of the Auth/ACL functionality? Is there any reasoning behind it? I would be very interested to hear that as well. The only reason I

Re: Including images within plugins?

2008-05-22 Thread Matt Huggins
Hmm, I created main.css within /app/plugins/myplugin/vendors/css. Within index.ctp, which is located within the associated controller's view for the plugin, I call the css() method of the HTML helper as per the following: ?php $html-css('main', 'stylesheet', array('media'='all'), false); ?

how not to clear cache?

2008-05-22 Thread robert123
Right now I have a shopping_cart_product model. it belows to product model , below is the model code I caching all product view page, but everytime someone add an product, the ShoppingCartProduct, gets update and all my cached product view is deleted, is there anyway I can stop the clearing of

Re: I can not solve Session - losing value after redirect problem after I read all previous posts.

2008-05-22 Thread Sergei
Try to set SESSION_SECURITY to medium or low in config. Should help. On 23 май, 11:25, Ozzy OG Kush [EMAIL PROTECTED] wrote: I'm having the same problem!!! It simply won't save sessions for me. On Apr 14, 1:49 pm, columbus [EMAIL PROTECTED] wrote: Hi, I am a beginner in both php

Solving the Mobile / Web Crossover issues - call for Beta testers

2008-05-22 Thread dm
Hi CakePHP'ers We have just launched a new service in Beta mode and i was hoping for some help to find some beta testers out there to trial the service. (its free to use). Browse your way over to: http://www.handsetdetection.com/ It is the first step in solving the mobile and web crossover

Is creating a digg clone hard for you? How hard?

2008-05-22 Thread Raistlin Majere
Take a look at the source code and the number of files of phpdug. click choose download at http://www.kubelabs.com/phpdug/ and select 1.4.2 How much time and money is needed to create a phpdug? Take a look at the index page of phpdug. http://demos.kubelabs.com/PHPDug/ Did you imagine that