Hi Jeremy, Anler
thanks for your replies.
@Jeremy: But where should I use it? Cake automaticaly do the set
flash... the message Login failed. Invalid username or password. is
hardcoded in the core... Should I handle your code that in login()
function?
@anler: I know that I may change the
pls... :)
On Feb 6, 12:01 pm, toka...@gmail.com toka...@gmail.com wrote:
Hi, I need to set up 'member' prefix for my page with its
localization.
So my address is now ... example.com/member/dashboard/index
BUT, how can I translate the word member to other language? Let say I
wish to use a
Hi nurvzy,
looks interesting any chance to have it working under cake 1.2??
Thanks
Tomas
On Feb 9, 6:32 pm, nurvzy nur...@gmail.com wrote:
Seems my server seems to be down. While I look into it, you can view
and download the plugin from the svn
Don't take this as a negative, but the more you work with CakePHP the
more you will realise that NDA's can be counter-intuitive. You will
benefit more from sharing our work, especially when asking people to
contribute to it, as others can then take the idea and run with it or
resolve issues
I agree, that behaviour is very irritating. Unfortunately I can't
tell you if it is code or server related, your domains have different
IP Addresses, but the same nameservers so the sites are likely to be
on the same shared server (along with over 8,700 others!).
I'm not sure if CakePHP would do
good, I'm so sorryyy, now I understand, using AuthComponent's
'auto setFlash'
mechanism is not posible to specify a layout, though, it be changed
through
flashElement property of AuthComponent in the new 1.3 version of
cakephp.
If you really need this feature (enhance, whatever...) you can
You can associate one model twice to another model without issue.
Think of the case when you save the Creator and Modifier of a record,
they both relate to the User model, but as long as you name the
association different it's fine.
var $belongsTo = array(
'Creator' = array(
I want to RETRIEVE User.email and Request.item, how do I do that with a
find()?
Sorry to just quote links from the book to you, but all your answers
are in there to be found.
By default recursive is set to 1 so Model-find() will retrieve data
from the model you are querying on and those models
I've been working with Sign in with Twitter and Facebook connect for a
current CakePHP project so I will certainly have a look at this. I
second tokasaa though, shame you've created it for the BETA version of
Cake as production sites are mainly going to be in 1.2
Paul.
Check out the new CakePHP
You may want to have a look at prototype too as that would allow you
to simply call $('element').show(); and $('element').hide(); or $
('element').toggle();
http://www.prototypejs.org/api/element/show
http://www.prototypejs.org/api/element/hide
http://www.prototypejs.org/api/element/toggle
HTH
I think it's /tmp/cache/views, not /tmp/cache/element
On Feb 10, 1:53 am, Jeremy mayt...@gmail.com wrote:
With some help... I figured out the problem. I was using the file
cache option and although the /tmp/cache directory was writable I was
missing a necessary directory. Since I was trying
Hi
I have this question:
I use ACL for manage the access to documents by users.
Now I must display a list of all documents that are accessible by the
logged user.
This list must be paginated.
I have no idea about how to do this and I think to abandon the ACL and
manage the permits with a big table
Are you aking how find the allowed docs or how to paginate this result
(or both)?
I did something similar once but with a different approach, since I
was working with
'resources' instead of documents, I listed the resources and the
option 'access info'
to show the permits for that resource (this
hi there! please share this stuff, i have a monstrous size blog and
small but very important app on cakephp, i also would like to use your
solution.
On 12 дек 2009, 18:40, jgadbois jgadb...@gmail.com wrote:
So I got it working (still not sure if it's the best way). I made a
WP Authentication
future production sites, though, not :)
On 10 Feb., 11:25, WebbedIT p...@webbedit.co.uk wrote:
I've been working with Sign in with Twitter and Facebook connect for a
current CakePHP project so I will certainly have a look at this. I
second tokasaa though, shame you've created it for the BETA
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î ô û ç
');
results:
�_õ_�_oe_ae_e_oe_ue_a_i_e_o_u_a_e_i_o_u_a_e_i_o_u_c
the first three chars do not work, the first and second are used many
times in Portuguese language...
is this a bug? does anybody have a solution?
best
Yeah, I cannot imaginge what;s different between this and some of my
other sites, I've been checking the cores and .htacces files but the
whitescreen stays.
Furthermore, the long urls are a result of cake's $html-link()
function. I guess it's what my domainhost has set internally, if i
hardcode
Can you explain better what is your solution.
I explain better my situation:
Model :
Group: (HABTM User)
User:(HABTM:Group)
Document
I have to manage permissions to access to documents.
Some users can modify some documents , some users can only read some
documents(I must also register when a
You want to keep the url with your letters as they are? if that is the
case, google by IDNA (International Domain Names ... or something, or
the package Net_IDNA in pear.php.net)
On Feb 10, 1:35 pm, PaulMan pho...@gmail.com wrote:
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î
hello,
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î ô û
ç );
what i want is to have the next result
a_o_i_oe_ae_e_oe_ue_a_i_e_o_u_a_e_i_o_u_a_e_i_o_u_c
but the result is
_õ_ _oe_ae_e_oe_ue_a_i_e_o_u_a_e_i_o_u_a_e_i_o_u_c
ã should be = a
õ should be = o
On 10 Fev, 12:41,
Hi all,
I cannot run http://localhost/cakePHP/posts/
error:
Not found
The requested URL /cakePHP/posts/ was not found on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80
the moment I'm testing with ubuntu 9.10
I do not know, how to configure it?
I really do step by step of the
I think the BEST way is using ACL, and yes, it's complex, but give you
reliability for free, even more
if you are mixin groups in the coctel (group permits are inherited by
users of that group, and things like that),
with ACL you could handle better reading and writing documents
through
Sorry, I know pretty much nothing about multibyte characters but you
should
take a look at mb_* functions at php.net
On Feb 10, 2:02 pm, PaulMan pho...@gmail.com wrote:
hello,
echo Inflector::slug(' ã õ ï ö ä ë ö ü á í é ó ú à è ì ò ù â ê î ô û
ç );
what i want is to have the next result
Ok many thanks.
Using the solution that you have suggested I don't need to use ACL.
In this case for manage permissions expressed by group on a document
(like Group A can read Document 1)
I must find all users that belong to the group and insert a record in
all two tables(LineDoc and DocPermit)
Can you be more specific. Do you have a problem with CakePHPs db2
driver? What specifically is not working?
I haven't used many drivers (MySQL and Sqlite) but I would expect them
all to work just by choosing to use them.
From the manual
var $default = array('driver' = 'db2',
Cake only supports conversion of a specified list of characters to
their root a or o.
You need to patch the Inflector class (and post it back to the
tracker).
line 496 of inflector.php is where the action starts. It is quite
obvious where to add your additional characters. Actually I added
those
Hello,
I am looking to develop a Saas type web application that would have
different groups or companies using the same database. This of course
would also include different users only belonging to certain groups
when logging in. Is this possible with CakePHP and if so would anyone
have a
Thank you both!!!
I used the patch you gave, and used mb_* functions to set string to
lowercase ( i was having problems with chars like Ó and Á )
Martin what do you mean by:
I will let you post the ticket though.
Sorry im not a expert on CAKEPHP , yet
On 10 Fev, 14:37, Martin Westin
Yes, correct. My bad.
On Feb 10, 2:51 am, majna majna...@gmail.com wrote:
I think it's /tmp/cache/views, not /tmp/cache/element
On Feb 10, 1:53 am, Jeremy mayt...@gmail.com wrote:
With some help... I figured out the problem. I was using the file
cache option and although the
Thank you so
I find where I stated
teno to learn to use the cake
at any price rsrsrs
liked the group
'm from Brazil and tried some
groups of the cake here but I had no return!
hug!
--
http://twitter.com/alaiRc
Check out the new CakePHP Questions site http://cakeqs.org and help others with
Forgive me, but I'm making a mess, now you're saying: I must find all users
that belong to the group and insert a record in
all two tables(LineDoc and DocPermit) for every user. I believe I don't
understand you quite well at first time, but anyway, If you going to do
that, may be is better for you
Hi, can someone explain what basic fundamental of ORM I am missing? I
am having trouble getting Cake to return the data I am after from
Associated models even though I am pretty sure I have my associations
set correctly:
Location
hasMany - Cat
Cat:
belongsTo - Location
hasMany - Subcat
Subcat :
Hi, I'm still struggling with saving information to related tables. I
have a form which updates info about a rental property and I have an
associated Rates table which holds data about the rental rates for the
property.
I've defined my relationship as :
Rental - hasOne
Rate - belongsTo
My save
You need mod_rewrite on your Apache and AllowOverride All for
directory with site to make .htaccess work.
On Feb 10, 7:06 pm, Sitthykun LY ly.sitthy...@gmail.com wrote:
Hi all,
I cannot runhttp://localhost/cakePHP/posts/
error:
Not found
The requested URL /cakePHP/posts/ was not found on
Hello,
I am developing my first web page in Cake Php and now I have a
problem. Is it possible to rename model. I have model
foo (www.domain.com/foo/list) and now i want to call it
bar (www.domain.com/bar/list). Is it possible (and how)?
Thank you
Check out the new CakePHP Questions site
Thanks Chad,
I tried but still couldn't do it.
It seems like I have to modify .htaccess file.
On Wed, Jan 27, 2010 at 5:11 AM, Chad Smith chadsmith...@gmail.com wrote:
Hey Leaf,
We've done a lot of rewriting with our sites and mainly with
http://theeasyapi.com, and
hmmm, You are talking about models orcontrollers? the controllers are
those that can be only accessed via url, you should read the book first!
everything is explained in detail
anl
On Wed, Feb 10, 2010 at 8:30 PM, schtr4jh schtr...@gmail.com wrote:
Hello,
I am developing my first web
future production sites, though, not :)
Of course ... and in that sense it is future proofed and above all,
hats off to the guy for creating and releasing a plugin. Especially
one regarding Facebook Connect which is a fidly little beast.
However, currently it would get more extensive use on
Nice plugin, this is the plugin im waiting for after twitter datasources,
thanks for create this plugin.
--
Mufti Ali
087831163105
http://wordtaps.com
http://blogfreakz.com
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You
I try to explain better.
I have users that belongs to groups (a user can belong to many group
and a group can have many users)
Then I have documents.
I must manage permissions on documents.
Permissions are : read a document, edit a document etc...
Permission can be defined in raltion to groups or
Psst, don't do that ;-) I think I saw a ticket about it and id would
not be fixed in 1.2 branch, but in 1.3 there should be an option to
add custom chars mapping.
Don't hack your core either, because it could cause problems when
upgrading, doing new stuff from fresh cake, etc. Make your own
Huh, I screwed up, yeah, I want to rename controllers.
Now it's suddenly much easier to find the solution. =)
Thanks again ;-)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to
I would do something like this:
items_controller.php
function foo(){
if (!empty($this-data)) { //check if there is data sent
if($this-User-field('email', array('conditions' =
array('email' = $this-data['User']['email']{ //find the emai in the
database
Weird question.
My user logs in and thru the site the page displays favourite icon if the
user has bookmarked that page. My question is can you cache individual user
data? When they login get all their bookmarked pages and cache that data
then when they go thru the site grab the saved data in
I think about this:
Have a table (with its model) named documents_permissions with the following
fields
id, document_id, user_id, group_id, read, create, update, delete
this model belongs To: User, Group, Document
Since a user may be part of many groups and some times you may have cases
like this:
Oh... I see the data got lost
The tables look like this:
id: 1
document_id: 9
user_id: null
group_id: 1
create: 0
read: 1
update: 0
delele: 0
On 10 feb, 21:04, Guillermo Mansilla mansil...@gmail.com wrote:
I think about this:
Have a table (with its model) named documents_permissions with the
OK... I have a follow-up question.
How do I prevent caching in certain cases? In the element that I am
working on, it is possible for the external service to fail. If that
happens, I trap the error and create some HTML to notify the user that
the service is unavailable. The problem is that I
Thank you for your feedback. I really do appreciate it. There are
two problems with making it work under cake 1.2.
1) Component configuration changed in 1.3, specifically the way a user
is intended to customize Auth. The change allows a user to customize
their Auth within the the components
thanks you all, it work
On Thu, Feb 11, 2010 at 1:21 AM, Dr. Loboto drlob...@gmail.com wrote:
You need mod_rewrite on your Apache and AllowOverride All for
directory with site to make .htaccess work.
On Feb 10, 7:06 pm, Sitthykun LY ly.sitthy...@gmail.com wrote:
Hi all,
I cannot
Please give me teory to webservice cakePHP. How webservice CakePHP
work? What the advantages of using webservice in cakePHP?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to
global function like __() is break the OOP concept, in some cases i need the
function bind to an object
case:
echo {${$someobject-__('String')}} // This will work
echo {${__('String')}} // this will not work because curly syntax after ${
is looking the variable object not a function, even in php
Hello,
when i retrieve my data in table-cells, how can i avoid line breaks,
for example in the table header?
[retrieve-code]
!-- table- (column-) captions --
table
tr
th?php echo $paginator-sort(array('asc' ='id v', 'desc'
='id ^'), 'id'); ?/th
th.../th
Just my personal opinion:
Making changes to the core has really not been a problem for me since
I put Cake into a Git repo. I just have a branch with my changes in it
and Git takes care of the merging.
On Feb 10, 11:20 pm, jodator joda...@gmail.com wrote:
Psst, don't do that ;-) I think I saw
I can not imagine why you would use a localized variable variable.
Anyway...
$temp_var = __('String',true);
echo {${$temp_var}};
On Feb 11, 8:14 am, Mukhamad Ikhsan ikhsan.o...@gmail.com wrote:
global function like __() is break the OOP concept, in some cases i need the
function bind to
Just released a facebook example app showcasing all the features of
this plugin.
http://facebook.webtechnick.com
Enjoy,
Nick
On Feb 10, 10:22 pm, nurvzy nur...@gmail.com wrote:
Thank you for your feedback. I really do appreciate it. There are
two problems with making it work under cake 1.2.
Using the Cache (CakePHP book at http://book.cakephp.org/view/764/Cache)
you can cache anything!
When using the Cache::read/write functions, just identify the cached
data as a key together with the users identification. Example:
Cache::write('user_no_'.$this-Auth-user('id').'_favorites',
56 matches
Mail list logo