can i use multiple time $ajax->remotetimer in singal layout?
--~--~-~--~~~---~--~~
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 gro
Hi,
I am using windows XP 2002 i am not able to configure shell please
help me to do so
--~--~-~--~~~---~--~~
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
T
If I call:
$this->Session-
>setFlash(router::url(array('testme'=>'freddy','controller'=>'TestCases',
'action'=>'main', 'requestedService'=>$cleanCase, 'id'=>$cleanCase)));
the output is:
/TestCases/main/testme:freddy
It looks like any parameters included after the controller/action are
droppe
You know, this is my fault.
Sorry guys, I didn't realize my that app_controller was setting a view
variable called "keywords" for use in the meta tags.
I wrote it so many months ago I guess I forgot about it.
--~--~-~--~~~---~--~~
You received this message because
It looks like Cake RC3 does not like models named "Keyword".
class KeywordsController extends AppController {
var $name = 'Keywords';
var $scaffold;
}
class Keyword extends AppModel {
var $name = 'Keyword';
}
Make a table named keyword, and then go to the URL
http://www
have you done a simpple connection test using mysql?
I had some issues when using an older version of mysql.dll which caused
issues after upgrading php.
Have you tried the php windows list?
2008/10/24 Merk <[EMAIL PROTECTED]>
>
> Hi,
>
> I have an installation of wampserver version 2.0 on my ma
Ok, I fixed the missing default_teragrid_list file problem but my
original problem of a non-existent field error message is back...
Any other suggestions?
thanks,
Mona
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
I just tried to empty my cache by deleting tmp/cache/mode/* and now
I'm getting a different error:
Warning: file_put_contents(/misc/www/projects/test/mona/app/tmp/cache/
models/default_teragrid_list) [function.file-put-contents]: failed to
open stream: No such file or directory in /misc/www/pro
Yeaah... but.. Suppose I simply want a restricted access (no
authentification needed for the CMS, just restrict the access to a
group) to tens if not hundred(s) of portal (in my department, we tried
at least that number over the years). I would have to write a
controller every time for each portal
Thanks... thought I tried that before. Clearly I didn't: Works fine.
--
View this message in context:
http://www.nabble.com/checkbox-state-tp20137221p20158824.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
You received thi
Hi,
I am thinking that there should be an improvement in Cake so that
Model caches are cleared when ever an update or insert is performed.
Anyone see any problems with that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
Yup!
On 10/24/2008, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
>
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
>
>
> correct?
>
> On Oct 24, 2:55 pm, thatsgreat2345 <[EMAIL PROTECTED]
'checked'=>true
On Oct 23, 7:19 pm, RyOnLife <[EMAIL PROTECTED]> wrote:
> Setting 'value' to '1' sets the value of the checkbox that will be returned
> if checked. It does nothing to influence if the checkbox is checked or not.
>
> Also, the checkbox I am dealing with is not tied to a model. I am
$time->format(); handles all that quite nicely
On Oct 23, 1:10 pm, rgreenphotodesign <[EMAIL PROTECTED]>
wrote:
> Forgive me if I've duplicated something that has already been stated
> in my first post on the group.
>
> I had a need and design to take a DATE data type and display it with
> the ni
what is $publicActions?
perhaps you are looking for $this->Auth->allow('add'); ...
Please take a look at the manual
On Oct 24, 2:06 pm, dsrawlins <[EMAIL PROTECTED]> wrote:
> I'm getting the message "You are not authorized to access that
> location." for my "add" function even though it is set w
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
correct?
On Oct 24, 2:55 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
> Oh thanks I had deleted the htaccess as it was causing problems before
>
Oh thanks I had deleted the htaccess as it was causing problems before
I had configured stuff with the new RC3
On Oct 24, 2:51 pm, teknoid <[EMAIL PROTECTED]> wrote:
> Ensure that mod_rewrite is enabled
> AND that AllowOverride is allowed.
>
> On Oct 24, 5:36 pm, thatsgreat2345 <[EMAIL PROTECTED]
Right.
On 10/24/2008, teknoid <[EMAIL PROTECTED]> wrote:
>
> Ensure that mod_rewrite is enabled
> AND that AllowOverride is allowed.
>
> On Oct 24, 5:36 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
>> I changed my default.ctp in layouts to just echo content so
>>
>> > "http://www.w3.org/TR/xhtm
You do not need to make any changes to the Cake the core in order to
handle this. It should be as simple as creating controllers for the
various pass thru applications and using include to get the output
from those applications. Good luck.
--~--~-~--~~~---~--~~
You
Ensure that mod_rewrite is enabled
AND that AllowOverride is allowed.
On Oct 24, 5:36 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
> I changed my default.ctp in layouts to just echo content so
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml"; xml:lang=
This is a 404 error just run it.
On 10/24/2008, thatsgreat2345 <[EMAIL PROTECTED]> wrote:
>
> I changed my default.ctp in layouts to just echo content so
>
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> http://www.w3.org/1999/xhtml"; xml:lang="en"
>
I changed my default.ctp in layouts to just echo content so
http://www.w3.org/1999/xhtml"; xml:lang="en"
lang="en">
Prize Cove
check('Message.flash')):
$session->flash();
endif;
?>
Hi,
I have an installation of wampserver version 2.0 on my machine. I'm
attempting to use the cake bake console from the command line. When I
do so, I get mysql_undefined errors.
Obviously the first step is to check the php.ini's to ensure
the .dll's aren't commented out. I've checked 3 diffe
You got some nice functionality there. I think it could be reorganised
a bit. At least from how I see a ticket system. I went with a slightly
different approach a few years ago when I needed similar
functionality. It is the same basic functionality but the code has a
different organisation from y
On Fri, Oct 24, 2008 at 5:09 PM, wirtsi <[EMAIL PROTECTED]>wrote:
>
> That sounds like a terribe design idea. Why don't you use the users id
> as foreign key in posts (ie user_id)?
>
its for performance.
wordpress mu inspirated my team for this database design.
the problem is I can't change tabl
I got it. I swear I had the absolute link in there correct the first
time. It works. Thanks for you help.
On Oct 23, 12:18 pm, oceanguy <[EMAIL PROTECTED]> wrote:
> I just ran into this as well. Generally, your mp3 files are probably
> in the same directory as your swf file. Unfortunately, i
Hi, here is an enhancement I'd like to propose for a "may be" future
use of the cakephp framework.
I'll describe this as a case study : What I'd like to do is to be able
to use CakePHP as a simple portal that would be responsible for
authentification and redirection purpose. (maybe add this and t
Allowing users the ability to change passwords is a no brainer.
But what do you do if a user losses their password? Several months
ago I wrote a very simple component that works in conjunction with my
user model to issue tickets to user emails.
The ticket can be retrieved via email and allows u
Here's my situation. I have my site (http://www.phillynorml.org/) set
up in a production environment (index.php, .htaccess, img, css, js,
etc in ../DocumentRoot, everything else in ../cake, and it's working
great for the most part.
The problem is that in DocumentRoot I have another folder with a
Avoid GoDaddy like the plague.
Cheap yes,
but support, service or features, NO.
For example, they have locked down access to mysqldump, take days or
weeks to respond to issue tickets that are never resolved to
satisfaction, and eventually just get ignored.
They share too many slices on each s
Hi,
I am in the process of migrating my very first CakePHP application to
1.2. I decided to try to keep track of my migration steps in a case-
study.
Considering how much CakePHP has evolved and also how many beginner-
mistakes I have put into this application, this migration will also
describe s
For work stuff Rackspace, its not cheap but the support is
unbelievably good. Also have had really good experience with www.xcalibre.co.uk
(we used them at my job before last)
For my own things Dreamhost - its so cheap (at least what I pay is) it
might as well be free and its a great for just pla
http://www.lunarpages.com
http://www.godaddy.com
Those are good.
--~--~-~--~~~---~--~~
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 th
I'm assuming you're talking about one of these (they were the only
results for a search on bakery for 'ldap' that I could find):
http://bakery.cakephp.org/articles/view/ldap-models-in-cakephp
http://bakery.cakephp.org/articles/view/using-ldap-as-a-datasource-basic-find-example
I looked at that an
Doh! I realized that about 10 minutes after I posted. Thanks.
On Oct 23, 3:31 pm, "Jay Reeder" <[EMAIL PROTECTED]>
wrote:
> Nathaniel,
>
> We're doing something similar. Try:
>
> class LdapAuthComponent extends AuthComponent
>
> On Thu, Oct 23, 2008 at 5:10 PM, Nathaniel Price <[EMAIL PROTECTED]
I'm getting the message "You are not authorized to access that
location." for my "add" function even though it is set with
publicActions. Any ideas? Thanks, Dave
class AppController extends Controller {
var $helpers = array('Html', 'Form');
var $components = array('Auth');
functio
Well, Mosso (http://www.mosso.com/) is *really* good -- they use
Rackspace cloud hosting. Solid service and great support folks.
I also think that TextDrive is great -- those Joyent folks are really
nice and very knowledgeable. The service is awesome.
I like Media Temple as well. They have great
Hey, this is more of a PHP question than a CakePHP question. I just Google'd
php count online users and came up with a lot of good
http://www.devarticles.com/c/a/PHP/The-Quickest-Way-To-Count-Users-Online-With-PHP/
results .
HTH,
Ryan
phpdev-2 wrote:
>
>
> Hello,
>
> I am building an appli
Are you using the AuthComponent?
If so, in your UsersController::beforeFilter() make sure that you put
this:
$this->Auth->allow('getCountLiveUsers');
That should do it.
On Oct 24, 3:22 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Oct 24, 4:14 pm, "dr. Hannibal Lecter" <[EMAIL PROTEC
Make sure the action can be reached by the user (is allowed/public),
then in the action call $this->Auth->login($data);
HTH,
- Dardo Sordi
On Fri, Oct 24, 2008 at 6:20 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi
> I have a question about the Auth component in CKAE 1.2
> In my applica
You are welcome, happy weekend!
On Fri, Oct 24, 2008 at 1:59 PM, Liebermann, Anja Carolin
<[EMAIL PROTECTED]> wrote:
>
> Thank you very much Dardo!
>
> I finally got it!
>
> I do it like this:
>function document_start($filename){
>$this->render('document_start');
>
Thank you very much Dardo!
I finally got it!
I do it like this:
function document_start($filename){
$this->render('document_start');
$this->writetoharddisk($filename, $this->output);
$this->output = '';
}
You made the week end wit
Every time you call $this->render() in the controller it's output is
appended in $this->output.
Call $this->render(), get the output from there or from $this->output
and save that, the empty $this->output.
HTH,
- Dardo.
On Fri, Oct 24, 2008 at 1:49 PM, Liebermann, Anja Carolin
<[EMAIL PROTECTED
Hi Dardo,
Thanks for your hint! What would be the correct syntax? I am not sure if I am
doing it right because now my file stays empty.
Example in the controller:
function document_start($filename){
$this->writetoharddisk($filename, $this->output);
}
Anja
-Urs
Hi Friends!
I have installed the Open Flash Chart helper located in
http://bakery.cakephp.org/articles/view/open-flash-chart-helper-draw-charts-the-cake-way
I also installed Open Flash Chart as mentioned in this page.
I double checked directories and files they are working. (Gives error
when c
Get the value from $this->output (in the controller), also empty that
to get only the current view.
On Fri, Oct 24, 2008 at 11:11 AM, Liebermann, Anja Carolin
<[EMAIL PROTECTED]> wrote:
>
> Hi Djiize, hi everybody
>
> At the moment I try your idea with $this-render().
>
> I wrote a function which
When I run something with php cli I have not noticed any normal time
limit. I have had cron jobs run for 20 minutes without setting a
limit.
Sure, set_time_limit is bad design for a page rendering script. But
something that is supposed to crawl through 6-7 months of transactions
for a web shop an
Very true, I was thinking about a page rendering script. As far as cli
code goes, the ShellDispatcher construct method takes care of
set_time_limit(0) for you.
cake/console/cake.php
ShellDispatcher::__construct( line 127 on 1.2 RC3):
function __construct($args = array()) {
set_time_l
set_time_limit, when called from a script has effect only on the
execution of that script/portion of code. You could call it anywhere in
your app though IMHO set_time_limit(0) reeks bad design.
Liebermann, Anja Carolin wrote:
> Hi everybody!
>
> Is there a possibility to set the time limit for
Hi everybody!
Is there a possibility to set the time limit for a script in CakePHP?
With a normal PHP script which has a big execution time I set it to
set_time_limit(0);
to avoid error messages.
Can I do the same with Cake without changing the seetings for the whole
server? If yes whe
Hi Matthieu,
The project I am now coding together with one colleague is quite big (at least
for me). We have about 70 models and tables.
What we did in the start was: sit together and think hard what everything
should do (paper).
Then we went on to think what objects / models we would need in
Hi,
I just encountered a strange one.
Well, I got the error earlier this week but have only now taken the
time to break it down.
I have a shell that just calls requestAction to run an action. When I
run the action in the browser, all is well.
When I run it via the shell I get strange results. Tur
I've never used polymorphic in that way, but I'm guessing there has to
be a way.
Probably your "entities_tags" table should be polymorphic; all your
brands, products etc will have HABTM 'with' this table, but with a
condition (like in the polymorphic article). If you try it, let us
know if it wor
On Oct 24, 4:14 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
> Usually, if you're using requestAction(..) this redirect occurs
> because the action you're requesting is not allowed by the
> AuthComponent. Make sure it is :-)
>
> Hope that helps!
>
> On Oct 24, 11:38 am, "[EMAIL PROTECTED
Hi Djiize, hi everybody
At the moment I try your idea with $this-render().
I wrote a function which will write me a string to a file on harddisk. The
string is $this-render() and it works.
To avoid my memory problem I divided the output in several functions which have
their own view like
Func
Thanks Hannibal,
I read it..this Polymorphic Behavior is only for two tables..but In my
case I have
Tag-- HABTM enities_tags---User,
Brand, Product..
Still should I follow this behaviour..
is there any other way to doing this?
On Oct 24, 4:11 pm, "dr. Hanni
Thx
On Oct 24, 5:07 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> http://book.cakephp.org/view/542/Defining-Routes
>
> On Fri, Oct 24, 2008 at 9:48 AM, xelios <[EMAIL PROTECTED]> wrote:
>
> > I am using WizardComponent, can anybody tell me wot the following
> > function does and where it
You are lucky to hava designers to do that stuff for you... I don't at
the moment.
You are right, though, I do come a bit more from a usability and gui
background than pure code-crunching. I guess the approach varies a lot
with preference, previous experience and the surrounding team (if
any)...
http://book.cakephp.org/view/542/Defining-Routes
On Fri, Oct 24, 2008 at 9:48 AM, xelios <[EMAIL PROTECTED]> wrote:
>
> I am using WizardComponent, can anybody tell me wot the following
> function does and where it should be placed.
> >
>
--~--~-~--~~~---~--~~
You
AD7Six is right, you don't need to change anything. Cake will search
for your controllers in app/controllers/ and it's subdirs, the same
goes for models. Cake will also cache the paths when in debug = 0.
- Dardo Sordi.
On Fri, Oct 24, 2008 at 2:07 AM, mirfan <[EMAIL PROTECTED]> wrote:
>
> Majna
If you are referring to the component by Jared Hoyt then why not start
with his tutorial article:
http://bakery.cakephp.org/articles/view/wizard-component-tutorial
On Oct 24, 1:12 pm, xelios <[EMAIL PROTECTED]> wrote:
> Can anybody please give me a working example of wizard or guide me
> step by
Usually, if you're using requestAction(..) this redirect occurs
because the action you're requesting is not allowed by the
AuthComponent. Make sure it is :-)
Hope that helps!
On Oct 24, 11:38 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> hi,
> 1) i m use elements for count number of user
[EMAIL PROTECTED] wrote:
> I really dislike my work when I have "cheated" and built views after
> the models... The gui never turns out nice... feels like
> scaffolding :)
>
>
Hehehe, interesting... The thing is this kind of approach would never
work for me. I'm a terrible designer, cake's sca
I am using WizardComponent, can anybody tell me wot the following
function does and where it should be placed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake
Hi,
I'm trying to find a way to guess all Acs for a given Aro in Acl.
I tried this approach (in a controller, with Acl component)
// get node and all parents
$aro = new Aro();
$node = $aro->node(array('model' => 'Group', 'id' => 7);
// extract id's
$ids = Set::extract($node, '{n}.Aro.id');
$c
Thanks, Brett, good to know.
It looks like both servers are running on grid 1; I'd be interested if
anyone out there running on grid 3 could give the new version of the
framework a try and let us know how it performs?
m
On Oct 23, 8:35 pm, "Brett Wilton" <[EMAIL PROTECTED]> wrote:
> > Brett, I
Can anybody please give me a working example of wizard or guide me
step by step process of installing and using this component.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, s
If I understood your idea correctly, polymorphic behavior might be of
interest to you:
http://bakery.cakephp.org/articles/view/polymorphic-behavior
Hope that helps!
On Oct 24, 1:02 pm, bookme <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to CakePHP ..want to implement a Tag functionlity for my
Hi,
I am new to CakePHP ..want to implement a Tag functionlity for my
website.
I have four modal
1 Tag
2 User
3 Brand
4 Product
I am thinking to make two tables
tags : id, tag_name
entities_tags : tag_id, entity_id, entity_type
here entity is User, Brand, Product and their corresponding ids..
Well I had gone through the links which you guys had provided. Thanks.
But the issue for me to implement an ACL is that I am not sure what
all function should be used due to the lack of documentation. One of
the requirement is already discussed above. I think I was able to
implement it partially.
> App::import( 'Core', array( 'View') );
should be this:
App::import( 'Core', array( 'View', 'Controller' ) );
which works well in shell script to produce text files:
$html = $oView->render( '/elements/report/' );
yet not with email component
--~
Hello,
I am building an application with cakephp here I need to count online
users on each page. The site has dynamic as well as static pages. Can
anyone help me how and where should write the code? How to achieve
this?
Your help will be highly appreaciated.
Thanks
--~--~-~--~~
That sounds like a terribe design idea. Why don't you use the users id
as foreign key in posts (ie user_id)?
On 24 Okt., 09:34, paydjo <[EMAIL PROTECTED]> wrote:
> I build application for multi user that separate table for every user.
> there would be user1_posts, user2_posts, user3_posts, ...,
This is not something anyone can definitively answer.
I'll just throw in my 0.02€ for whatever it is worth.
I have been the most happy with the results when I have gone the other
way. :)
Starting with the vision and use cases.
Creating the best gui I can to to those things (not worrying about ph
On Oct 14, 1:40 am, ORCC <[EMAIL PROTECTED]> wrote:
> Use an element.
>
> 1) In your UsersController you have a function that returns the count
> of live users:
>
> class UsersController extends AppModel {
>
> function getCountLiveUsers() {
> //perform the calcul
hi,
1) i m use elements for count number of user are live, when i put
element code in php delemeters then firefox generate error
error is:
Redirect Loop
Firefox has detected that the server is redirecting the request for
this address in a way that will never complete.
The browser has stopped
Hi leberie,
I make a quick query like yours and looked at the sql debug.
I have "LIMIT 1" at the end of the query no matter what I do.
( find('first') empty, and with only a field defined and the both
field and order)
I am on rc3 so if this was a bug in rc2 it has been fixed. rc3 is also
a lot f
Hi,
I'm trying to implement Open Flash Chart 2 (http://teethgrinder.co.uk/
open-flash-chart-2/) into my Cakephp app. I'm aware of the "Open Flash
Chart Helper" (see
http://bakery.cakephp.org/articles/view/open-flash-chart-helper-draw-charts-the-cake-way),
but this is for the old version.
What's
Hi,
there is a article on bakery about using ldap, in theory you would
replace you users table with a link to ldap and you wont need to
change anything in auth.
and all user information will be store in ldap
On 23 Oct, 22:10, Nathaniel Price <[EMAIL PROTECTED]> wrote:
> I'd like to extend the A
Hi,
using this tutorial:
http://bakery.cakephp.org/articles/view/emailcomponent-in-a-cake-shell
I can send mails from shells, fine, yet I cannot set any variables
that would be print in the .ctp file.
I tried using this in my shell, no worky.. any idea?
App::import( 'Core', array
Have you tried deleting all the files in /tmp/cache/models/, I have
had similar problems and it ended up being these files. If you delete
all of them, cake will reproduce them the next time a page is loaded
with the current database schema. I now do this when ever I change
anything in the database
Hi
I have a question about the Auth component in CKAE 1.2
In my application I have a method to authenticate users that is NOT
based on username and password.
I would use the same the Auth component to do this.
Can someone tell me how can I do this?
Many Thanks
--~--~-~--~~
*push*
just wanna know if this is normal?
--~--~-~--~~~---~--~~
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
I build application for multi user that separate table for every user.
there would be user1_posts, user2_posts, user3_posts, ..., userX_posts
X = user.id
is it possible to change tablePrefix on the fly ?
--
http://paydjo.net/
--~--~-~--~~~---~--~~
You received t
84 matches
Mail list logo