Hello,
Any idea how can I make for example pagination use the current locale
in a model that $actsAs Translate?
Any help would be great.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gro
Hello,
I have a project in which we have so far 3 user roles - superadmin,
admin and user. (Super)Admins can log into the admin panel. But now
the client needs a 4th role - translator.
Translator will be able to:
* log into the admin panel
* view all values in admin panel
* modify values in admi
Hello,
> I'm struggling with something I imagine is extremely easy, forcing
> my admin routes to go over SSL. Am I even close?!
Maybe you should consider forcing SSL connection at the login point as
well (no need if you already aliased login operation with admin
route).
Regards,
Piotr
--~--~
Hello,
Typical output of one of my shells looks like:
[H [2J
Welcome to CakePHP v1.2.3.8166 Console
---
App : app
Path: /home/piotr/www/poker/app
---
Tue, 28 Jul 2009 20:31:10
Hello,
I'm building an app where language versions will be set using
subdomains (en.app.tld, de.app.tld etc). Therefore I'd like to hear
from any of you who have experience with Cake view caching in such a
case. As far as I see the filenames in app/tmp/cache/views are built
using url only, so sho
Hello,
> Actually I have 4 tables in my database :
>
> 1-comments
> 2-posts
> 3-categories
> 4-work
>
> And i have a lonely page : default.php (my web site is juste 1 page ).
> which is located in my webSite Root.
Any reason not to follow the Cake MVC pattern / file structure?
> So i want to ge
Hi,
> Under the first note--My english is bad,so say sorry first to every
> member.
>
> ok, I find an eminently case in model method about save data into
> database.
>
> exapmple1
> $this->data=array(
> 'Modelname'=>array(
> 'id' => '123',
> 'somefield'=>0
>
Hi,
I am seeking (remote) employment in CakePHP, preferably around 25
hours a week. I can offer several years of PHP expertise + reliable
and up-to-date knowlegde of CakePHP. I will be very glad to send over
my Resume/CV.
My porfolio can be found at:
http://3lancer.eu
Regards,
Piotr
Hallo everyone,
I am manually starting a session in one cake app (Session.start ==
false in config/core.php). So in order to take advantage of the flash
messages, I need first to activate the session component (which is
straightforward in the controller) and then activate the session
helper. Is i
Hi,
As the app grows larger and larger I need a way to get a completely
rendered layout + view in one of my controller's methods. Can you
suggest a way to do that?
I'm working Rc3.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are sub
Hallo again,
Sorry, I don't have time to really help you today, but the 1st thing
I'd suggest to do, is to change cake .htaccesses so they do the
explicit redirect, ie. change [L] in rewrite-rules to [R,L] and then
see where the redirect is taking you, and maybe you'll find why the
hell it makes
Hi,
Can you supply us some configs and logs?
Maybe it's a matter of a trailing slash somewhere, Cake can bring you
pain with that sometimes...
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
Hi,
> I don't have access to the Apache logs, and I have spent a few days
> looking for a solution to the this problem and have had no luck
Personally, I'd suggest you spent 5 minutes on e-mailing GoDaddy
instead. If you don't even have the Apache logs there are just too
many possibilities...
R
Hi,
There is essential difference between read() and check() methods of
the Session class.
However, you should rather use the following convention:
http://book.cakephp.org/view/247/AuthComponent-Methods#user-387
Regards,
Piotr
--~--~-~--~~~---~--~~
You received t
Forgot to mention, leave app/webroot/index.php alone, I mean use the
one from tar, zip, whatever. The ini solution is far cleaner then
messing around with index.php.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Hi there,
Might be applicable also for other hosting companies maybe...
The problem was described by me here:
http://groups.google.com/group/cake-php/browse_thread/thread/d4fc8f8bfcb2bf6d/fb02bb3a89ce5cfb?lnk=gst&q=please+help#fb02bb3a89ce5cfb
The fix is to add the php.ini file in / dir contain
> After save need to delete it manualy with clearCache() function dont
> know is it correct way but it works for me
Do you mean after saving a related model delete the cached view
manually? Do you get page at / buffered that way?
Regards,
Piotr
--~--~-~--~~~---~--~---
Hi,
Maybe try to replace [L] with [R,L]. This way urls will not be
rewritten silently, rather your client will be redirected using
location header and 3xx status (in this case 302 afair). This way you
can see how the urls are rewritten and debug the http headers using
for example Firebug.
Regard
Hi,
Yes, I'm usings slugs as well and having the same issue. Do you use
RC2 as well?
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@goog
Hi again,
And what is the problem here, what query is generated?
Regards,
Piotr
--~--~-~--~~~---~--~~
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 unsu
Hi,
> can anyone help me with this problem???
Yes. Two ideas.
1st, worse - use redirections, so in case your url is /searches/index?
search=linkin redirect it to /searches/index/linkin/. Redirections
always give us some overhead, also this way the search results won't
be seo.
2nd, better - you
Hi,
> function limitState($data, $limit) {
> $count = $this->find('count', array('conditions' => $data,
> 'recursive' => -1) );
> return $contagem < $limit;
> }
What is $contagem doing here then?
Regards,
Piotr
--~--~-~--~~~---~--~~
You
Hi,
Well, I don't know why do you expect that to work. Please read the
chapter on routes:
http://book.cakephp.org/view/46/Routes-Configuration
You would save some work if you followed cake url conventions.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this me
Hi,
> I am trying to do some (what I think is) advanced routing. So my
> goal is to have a person be able to type inhttp://example.com/users/bobcostas
> and then have cakePHP automatically redirect to that bob costas'
> profile page if if it exists.
This is trivial routing ;-)
There are many w
Hi,
> How can I validate only firstname and lastname fields, without
> validating password?
You can simply write custom function for validation of that field
which would first check if that field is set in $this->data array and
if so, perform other checks. However there may be better ways to do
Hi,
> but when you change the picture, the old picture is still stuck in the
> cache, so to see the new pic the user needs to push F5... I can't
> figure out how to "refresh" the page automatically.
>
> any ideas?
Simplest way is to add some random query string at the end of the url,
like
http:/
> i still have problem witch home.pl fucking shit
>
> http://www.aeonmedia.eu/
> http://www.aeonmedia.eu/aeonmedia
;-)
I see you made it work?
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
Hi,
> CakePHP will not working on home.pl - there is not rewrite engine (if
> i good remember, they are working on it ;)), try ovh.pl - cheap with
> great polish support
Well, that was not my decision, I just had to install cake there since
the customer already owned server with all e-mail accou
> just clear your app/tmp/cache folder.always worked for me
I did, but it didn't set proper paths anyway, setting include_path did
it.
Regards,
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
Oh, got it kind of working, the workaround was quite strange however:
//this must be set on home.pl
if (strpos('bomasport.pl', $_SERVER['SERVER_NAME']) !== false) {
ini_set('include_path', '/app/..:/app:.');
define('APP_PATH', '/app');
define('CORE_PATH', '/');
}
around l
Oh, got it kind of working, the workaround was quite strange however:
//this must be set on home.pl
if (strpos('example.com', $_SERVER['SERVER_NAME']) !== false) {
ini_set('include_path', '/app/..:/app:.');
define('APP_PATH', '/app');
define('CORE_PATH', '/');
}
around l
Hallo everyone,
Today, from the early morning, I'm feeling the pain to install Cake on
an quite untypical server (it's some Idea WebServer and the hosting
company is http://home.pl). The problem looks like, after copying Cake
installation there, I have that php errors:
Warning: array_merge() [f
Hi guys, I'm kind of stuck...
In my app I have a setting, stored in db, which is responsible for
disabling the app and showing the 'under maintenance' message. I store
the value of that in a constant called TECHNICAL_DOWN_FOR_MAINTENANCE.
So in my AppController::beforeFilter() I have:
//
Hi,
> I'm making an app where I need to be able to have a link that when
> clicked, dims the windows(like lightbox) and then brings up an ajax
> calendar. I know that lightbox is for photos, so does anyone have any
> suggestions on apps that could be used for this?
There is a thing called Thickb
Aaah, you mention that you MUST use sendmail...
Well, possibly answer is in the sendmail logs or the mail headers.
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send e
Hi,
As for me, it's highly probable that the e-mails get lost due to some
anti-spam filters. Did you try sending it properly, with smtp? Just
create 'noreply' account and have a go...
P.S. Remember to set 'from' field for the smtp, otherwise you may run
into errors.
Piotr
--~--~-~--~---
Of course there is!
http://book.cakephp.org/view/172/authentication
ACL is something different , it is explained over there...
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this
Hi,
> I'm newbie in CakePHP framework, now iam learning cakephp 1.2, i want to set
> global constants, where do i put the code?,
bootstrap.php file in app/config I guess?
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Hi,
> How do I make it such that each different variation of the date gets
> redirected to the appropriate view? Thanks!
I'd personally go for 3 simple regexps, 1 for year, 1 for year/month,
1 for year/month/date...
Piotr
--~--~-~--~~~---~--~~
You received this
Hi,
> What does the generated HTML look like? Sounds like it's using a
> relative path.
Exactly, any reason for not using $html->image() for that?
Piotr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
Hi,
> I think, yes. I hame more than 1 database on my local MySQL server and
> some of them are utf-8 too. There are no such thingth with them, all
> of them displayed Ok everywhere - in PHPMyAdmin and client app. For
> example, I have some deal with Joomla! - it's PHP+MySQL -based CMS.
> For it
Hi,
> I cannot find the solution for my trouble: MySQL incorrect stores
> russian characters. I use utf-8 enconing in CakePHP app, MySQL
> database also is utf-8. When I view my data thru my app in browser,
> it's Ok, but when I look into the database directly (using PHPMyAdmin,
> MySQL qurey bro
Hi,
Isn't this just a matter of model data being cached in app/tmp/cache/
models/ ?
Piotr
--~--~-~--~~~---~--~~
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.
Privyet Dmitry :)
> I cannot find the solution for my trouble: MySQL incorrect stores
> russian characters. I use utf-8 enconing in CakePHP app, MySQL
> database also is utf-8. When I view my data thru my app in browser,
> it's Ok, but when I look into the database directly (using PHPMyAdmin,
> M
44 matches
Mail list logo