Oh that’s simple… Just wanted to make sure I wasn’t missing some sort of convention… cheers @tonyair
Sorry I know I am asking a question that has probably been asked a million times, I know I am very late to the game but starting working on a site in SS4 (I work for a company that has a legacy SS3 project).
In SS3 I used to just create different (private) modules at the root level. Where is the ideal place to create these SS modules in SS4. Do I create them in the /app directory?
These are private modules just to help keep my files a little more organised so they won’t be installed via composer and are project specific…
I don’t think something like this works
ProfileController::create()->render($params); but I imagine there is a way to render the content for
/profile/<username and then display it
What I was originally doing in the
handleRequest() method was
$directorRules = Config::inst()->get('Director', 'rules');
<username> parameterwas in this list…
ProfileControllerpage (passing in the $username and any other values I needed) and then render it
I was stuck on point 7. Which I think would be the same situation if I user
handleAction() although as I say I could be just not understanding properly.
This is my current routing for that
I guess what I am not understanding is how I get the content from the ProfileController to display at this location…
Ok just having a quick play with that code, I maybe back in a few mins to ask more questions 😉