10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 633 Views |
-
Where to collect my files to make my own Module?

5 March 2009 at 9:56pm Last edited: 6 March 2009 1:05am
hey buddys,
I did wrote a PMS for silverstipe with an FrontEnd interface to write/read/show.
i coded simple ->
.php files in mysite/code
.ss files in themes/xx/templates/Layout
.css files in themes/xx/css/i think i read there is a way to make a seperate folder with an _config.php, what could contains all the files of the PMS.. so i just need to add this folder to a new page -> DB/BUILD?FLUSH=1and then it should works.
i tried some ways but it never worked. i thinks its quite simple, not? can someone help me please how to do?
(P.S.: soon, after fixing the last bugs i'll post is here in Module-Section..)
######## Edit ########
i cant delte the first screenshot..
-.-
################### -
Re: Where to collect my files to make my own Module?

6 March 2009 at 1:27am
i mean.. how must be the Folder-Structure inside my Module Folder?
And where do i have to add this folder?do i have to think für special thing?
-
Re: Where to collect my files to make my own Module?

6 March 2009 at 3:14am
Hi,
Good news for you! What you need to do isn't very complicated. Basically, you create a folder at the root level (relative to your CMS). Your module goes in that folder. The folder must contain the _config.php file you mentioned. Convention is that PHP files go into a sub-folder called code. So, you want to end up with something like:
/mycmssite
- /mymodule
-- /code
-- (other folders in your module)
-- _config.phpMore details: http://doc.silverstripe.org/doku.php?id=creating-modules
Hope this helps!
Ben
| 633 Views | ||
|
Page:
1
|
Go to Top |

