Now, in 1.1.3 we have WYSIWIG editor field.
Note that the tutorial has been strongly updated, a lot of mistakes were fixed.
Now, in 1.1.3 we have WYSIWIG editor field.
Note that the tutorial has been strongly updated, a lot of mistakes were fixed.
Thanks, Alexander! I’ve been using your extension for about a week, it brings me a lot of benefit.
But there’s a problem. Correct me if I unserstand incorrectly.
array('avatar', 'image', 'Avatar', array('show', 'null', 'popup'=>true, 'directoryPath'=>'/img/avatars')),
If I do so, images upload to
/img/avatars
dir, but altogether. If I set directoryPath as a dynamic param
'directoryPath'=>'/img/avatars'.date('y-m-d')
images names will be stored in DB withoud this directory path, only their names, so I won’t be able to access them. Also I can’t use function with filename as argument
'directoryPath'=>'/img/avatars'.mb_substr($filename, 0, 3)
cause I don’t know where’s this $filename.
It’s a problem. There are too many pictures in my project to store them in one folder.
Need help!!
Use
subDirectoryPath
option for ‘file’ and ‘image’ fields. It would be stored to DB and takes part in a directory tree of files placing.
i keep getting this error whenever i try to update or add an entry:
Parse error: syntax error, unexpected end of file in C:\wamp\www\ebi\protected\extensions\autoAdmin\views\edit.php on line 132
The line 132 is a PHP closing tag:
Do you use the latest version?
Have you tried this exemplary pack?
If so that’s strange. Send me your module code and DB structure dump.
i just downloaded the example pack and im testing it, thats when i got the error.
i just downloaded from the link you posted and still the same error
Ok. It might be caused by a couple of fresh short open tags. Re-download the extension (or the exemplary pack), now it must be all right.
I enabled short open tags on my php and the error is gone… Thanks.
Now it should be okay with any tags, I’ve corrected it.
You are welcome!
How do i configure the "enum" parameter?
ive been playing around with this all day, truly awesome. Nice work.
I’ve added this info to the description.
The main thing it’s powerful for nearly any tasks. If you like it, like it
I copied the files to a linux server, i set ‘authMode’ => true but whenever i try to login it just keeps redirecting back to the login page… everything seems ok, but obviously i must have overlooked something, can you help pls?
If there aren’t any errors in logs (which theoretically can be caused the case-sensitive feature), check your session configuration - may they dont start?
Then you may try ti debug, editing AutoAdmin files. The authentication is built on classical Yii architecture.
Good news!
Now (with 1.2b version) you can generate interfaces (Yii actions) for SQL tables automatically. You only need to tune complicated and specific fields or give them good titles.
No more "monkey-code"!
Go to /autoadmin/aagenerator/ in your panel or use the link in the right bottom corner of any page.
great job!
i noticed there is a problem with tables having more than one foreign key, is there a way to configure that?
Of course you can use as many foreign keys as you wish. If you have any problems with that new generator, you can write ForeignKey code manually.
I’d be grateful If you create an issue here: https://github.com/vintage-dreamer/AutoAdmin-Yii-Extension/issues?state=open
thanks, its not an issue… i didnt configure the foreign keys properly